Ich verwende Raspbian in einem Raspberry Pi 2 Model B.
Ich habe die Richtlinien auf der RStudio-Webseite und auch in diesem Thema https://www.raspberrypi.org/forums/viewtopic.php?f=34&t=55828 befolgt
sudo su
apt-get install git r-recommended
git clone https://github.com/rstudio/rstudio.git
cd rstudio
./dependencies/linux/install-dependencies-debian
mkdir build
cd build
cmake .. -DRSTUDIO_TARGET=Server -DCMAKE_BUILD_TYPE=Release
make install
Aber wenn ich cmake .. -DRSTUDIO_TARGET=Server -DCMAKE_BUILD_TYPE=Release
es tue , wirft es mir diesen Fehler:
CMake Error at src/cpp/session/CMakeLists.txt:23 (message):
Dictionaries not found (re-run install-dependencies script to install)
-- Configuring incomplete, errors occurred!
See also "/home/pi/rstudio/build/CMakeFiles/CMakeOutput.log".
See also "/home/pi/rstudio/build/CMakeFiles/CMakeError.log".
Ich habe versucht, Abhängigkeiten neu zu installieren, aber das hat nicht geholfen
Dies ist das Fehlerprotokoll:
Determining if the function getpeereid exists failed with the following output:
Change Dir: /home/pi/rstudio/build/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTryCompileExec3944045131/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec3944045131.dir/build.make CMakeFiles/cmTryCompileExec3944045131.dir/build
make[1]: Entering directory '/home/pi/rstudio/build/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /home/pi/rstudio/build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec3944045131.dir/CheckFunctionExists.c.o
/usr/bin/cc -DCHECK_FUNCTION_EXISTS=getpeereid -o CMakeFiles/cmTryCompileExec3944045131.dir/CheckFunctionExists.c.o -c /usr/share/cmake-3.0/Modules/CheckFunction$
Linking C executable cmTryCompileExec3944045131
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec3944045131.dir/link.txt --verbose=1
/usr/bin/cc -DCHECK_FUNCTION_EXISTS=getpeereid CMakeFiles/cmTryCompileExec3944045131.dir/CheckFunctionExists.c.o -o cmTryCompileExec3944045131 -rdynamic
CMakeFiles/cmTryCompileExec3944045131.dir/CheckFunctionExists.c.o: In function `main':
CheckFunctionExists.c:(.text+0x14): undefined reference to `getpeereid'
collect2: error: ld returned 1 exit status
CMakeFiles/cmTryCompileExec3944045131.dir/build.make:88: recipe for target 'cmTryCompileExec3944045131' failed
make[1]: *** [cmTryCompileExec3944045131] Error 1
make[1]: Leaving directory '/home/pi/rstudio/build/CMakeFiles/CMakeTmp'
Makefile:118: recipe for target 'cmTryCompileExec3944045131/fast' failed
make: *** [cmTryCompileExec3944045131/fast] Error 2
Wissen Sie, was passieren könnte?
EDIT 1:
Dies ist die Ausgabe von running ./dependencies/linux/install-dependencies-debian
:
root@raspberrypi:/home/pi/rstudio# ./dependencies/linux/install-dependencies-debian
Reading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree
Reading state information... Done
pkg-config is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree
Reading state information... Done
fakeroot is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree
Reading state information... Done
cmake is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree
Reading state information... Done
uuid-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree
Reading state information... Done
libssl-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree
Reading state information... Done
libbz2-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree
Reading state information... Done
zlib1g-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'libpam0g-dev' instead of 'libpam-dev'
libpam0g-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree
Reading state information... Done
libxslt1-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree
Reading state information... Done
libapparmor1 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree
Reading state information... Done
apparmor-utils is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree
Reading state information... Done
libboost-all-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree
Reading state information... Done
libpango1.0-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package openjdk-6-jdk is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
apt
E: Package 'openjdk-6-jdk' has no installation candidate
Es sagt mir, dass openjdk-6-jdk benötigt wird, aber es ist nicht in den Repos. Ich habe openjdk-7-jdk manuell installiert, aber die Installation hat nicht funktioniert.
Danach habe ich die Zeile kommentiert (#), in der versucht wird, openjdk-6-jdk zu installieren. Nun folgt die Installation von Paketen und diese sind (die letzten Zeilen) der Ausgabe:
Reading package lists... Done
Building dependency tree
Reading state information... Done
ant is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree
Reading state information... Done
unzip is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
./dependencies/linux/install-dependencies-debian: line 58: cd: ../common: No such file or directory
Ich habe erneut in die Datei eingegeben install-dependencies-linux
und dies sind die Zeilen, die fehlschlagen:
cd ../common
./install-common
cd ../linux
Aber ich weiß nicht, was versucht zu installieren. Beginnen Sie nach diesen Zeilen mit der Installation des Qt, dies gilt jedoch für die RStudio Desktop-Version, nicht für meine Server-Version.
EDIT 2:
Mit dem Befehl find / -name install-common
habe ich festgestellt, dass sich unter dem Abhängigkeitsverzeichnis ein gemeinsames Verzeichnis befindet. Also ich cd
‚ed /dependencies/common/
und manuell ein./install-common
root@raspberrypi:/home/pi/rstudio/dependencies/common# ./install-common
--2015-11-21 19:26:41-- https://s3.amazonaws.com/rstudio-buildtools/gin-1.5.zip
Resolving s3.amazonaws.com (s3.amazonaws.com)... 54.231.98.155
Connecting to s3.amazonaws.com (s3.amazonaws.com)|54.231.98.155|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1055663 (1.0M) [application/zip]
Saving to: ‘gin-1.5.zip’
gin-1.5.zip 100%[=====================>] 1.01M 951KB/s in 1.1s
2015-11-21 19:26:43 (951 KB/s) - ‘gin-1.5.zip’ saved [1055663/1055663]
--2015-11-21 19:26:44-- https://s3.amazonaws.com/rstudio-buildtools/gwt-2.7.0.zip
Resolving s3.amazonaws.com (s3.amazonaws.com)... 54.231.9.24
Connecting to s3.amazonaws.com (s3.amazonaws.com)|54.231.9.24|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 108818328 (104M) [application/zip]
Saving to: ‘gwt-2.7.0.zip’
gwt-2.7.0.zip 100%[=====================>] 103.78M 7.80MB/s in 20s
2015-11-21 19:27:04 (5.27 MB/s) - ‘gwt-2.7.0.zip’ saved [108818328/108818328]
--2015-11-21 19:27:36-- https://s3.amazonaws.com/rstudio-buildtools/junit-4.9b3.jar
Resolving s3.amazonaws.com (s3.amazonaws.com)... 54.231.49.132
Connecting to s3.amazonaws.com (s3.amazonaws.com)|54.231.49.132|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 247280 (241K) [application/java-archive]
Saving to: ‘junit-4.9b3.jar’
junit-4.9b3.jar 100%[=====================>] 241.48K 246KB/s in 1.0s
2015-11-21 19:27:38 (246 KB/s) - ‘junit-4.9b3.jar’ saved [247280/247280]
--2015-11-21 19:27:38-- https://s3.amazonaws.com/rstudio-buildtools/selenium-java-2.37.0.zip
Resolving s3.amazonaws.com (s3.amazonaws.com)... 54.231.112.67
Connecting to s3.amazonaws.com (s3.amazonaws.com)|54.231.112.67|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 24625928 (23M) [application/zip]
Saving to: ‘selenium-java-2.37.0.zip’
selenium-java-2.37. 100%[=====================>] 23.48M 2.28MB/s in 16s
2015-11-21 19:27:55 (1.45 MB/s) - ‘selenium-java-2.37.0.zip’ saved [24625928/24625928]
--2015-11-21 19:28:00-- https://s3.amazonaws.com/rstudio-buildtools/selenium-server-standalone-2.37.0.jar
Resolving s3.amazonaws.com (s3.amazonaws.com)... 54.231.114.92
Connecting to s3.amazonaws.com (s3.amazonaws.com)|54.231.114.92|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 34730734 (33M) [application/x-java-archive]
Saving to: ‘selenium-server-standalone-2.37.0.jar’
selenium-server-sta 100%[=====================>] 33.12M 4.39MB/s in 8.6s
2015-11-21 19:28:10 (3.84 MB/s) - ‘selenium-server-standalone-2.37.0.jar’ saved [34730734/34730734]
--2015-11-21 19:28:10-- https://s3.amazonaws.com/rstudio-buildtools/chromedriver-mac
Resolving s3.amazonaws.com (s3.amazonaws.com)... 54.231.96.144
Connecting to s3.amazonaws.com (s3.amazonaws.com)|54.231.96.144|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 22034760 (21M) [application/octet-stream]
Saving to: ‘chromedriver-mac’
chromedriver-mac 100%[=====================>] 21.01M 5.39MB/s in 4.8s
2015-11-21 19:28:15 (4.34 MB/s) - ‘chromedriver-mac’ saved [22034760/22034760]
--2015-11-21 19:28:15-- https://s3.amazonaws.com/rstudio-buildtools/chromedriver-linux
Resolving s3.amazonaws.com (s3.amazonaws.com)... 54.231.97.227
Connecting to s3.amazonaws.com (s3.amazonaws.com)|54.231.97.227|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 19303552 (18M) [application/octet-stream]
Saving to: ‘chromedriver-linux’
chromedriver-linux 100%[=====================>] 18.41M 2.53MB/s in 9.4s
2015-11-21 19:28:25 (1.95 MB/s) - ‘chromedriver-linux’ saved [19303552/19303552]
--2015-11-21 19:28:25-- https://s3.amazonaws.com/rstudio-buildtools/chromedriver-win.exe
Resolving s3.amazonaws.com (s3.amazonaws.com)... 54.231.13.152
Connecting to s3.amazonaws.com (s3.amazonaws.com)|54.231.13.152|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 6731776 (6.4M) [application/octet-stream]
Saving to: ‘chromedriver-win.exe’
chromedriver-win.ex 100%[=====================>] 6.42M 2.52MB/s in 2.6s
2015-11-21 19:28:29 (2.52 MB/s) - ‘chromedriver-win.exe’ saved [6731776/6731776]
--2015-11-21 19:28:29-- https://s3.amazonaws.com/rstudio-dictionaries/core-dictionaries.zip
Resolving s3.amazonaws.com (s3.amazonaws.com)... 54.231.10.192
Connecting to s3.amazonaws.com (s3.amazonaws.com)|54.231.10.192|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 876339 (856K) [application/zip]
Saving to: ‘core-dictionaries.zip’
core-dictionaries.z 100%[=====================>] 855.80K 1.00MB/s in 0.8s
2015-11-21 19:28:31 (1.00 MB/s) - ‘core-dictionaries.zip’ saved [876339/876339]
--2015-11-21 19:28:31-- https://s3.amazonaws.com/rstudio-buildtools/mathjax-23.zip
Resolving s3.amazonaws.com (s3.amazonaws.com)... 54.231.1.152
Connecting to s3.amazonaws.com (s3.amazonaws.com)|54.231.1.152|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1674748 (1.6M) [application/zip]
Saving to: ‘mathjax-23.zip’
mathjax-23.zip 100%[=====================>] 1.60M 578KB/s in 2.8s
2015-11-21 19:28:35 (578 KB/s) - ‘mathjax-23.zip’ saved [1674748/1674748]
1.50.0 already installed in /opt/rstudio-tools/boost/boost_1_50_0
--2015-11-21 19:28:35-- https://s3.amazonaws.com/rstudio-buildtools/pandoc-1.13.1.zip
Resolving s3.amazonaws.com (s3.amazonaws.com)... 54.231.64.184
Connecting to s3.amazonaws.com (s3.amazonaws.com)|54.231.64.184|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 115697042 (110M) [application/zip]
Saving to: ‘pandoc-1.13.1.zip’
pandoc-1.13.1.zip 100%[=====================>] 110.34M 1.99MB/s in 44s
2015-11-21 19:29:20 (2.52 MB/s) - ‘pandoc-1.13.1.zip’ saved [115697042/115697042]
cp: cannot stat ‘pandoc-1.13.1/linux/debian/armv7l/pandoc*’: No such file or directory
Und jetzt, wenn ich wieder einen cmake durchführe, ist dies die Ausgabe:
root@raspberrypi:/home/pi/rstudio/build# cmake .. -DRSTUDIO_TARGET=Server -DCMAKE_BUILD_TYPE=Release
-- Boost version: 1.50.0
-- Found R: /usr/lib/R
CMake Error at src/cpp/session/CMakeLists.txt:32 (message):
rsconnect package not found (re-run install-dependencies script to install)
-- Configuring incomplete, errors occurred!
See also "/home/pi/rstudio/build/CMakeFiles/CMakeOutput.log".
See also "/home/pi/rstudio/build/CMakeFiles/CMakeError.log".
Zumindest wirft es jetzt einen Fehler in eine andere Zeile!
EDIT 3:
Ich habe die Abhängigkeiten manuell installiert install-common
und jetzt funktioniert der Befehl cmake! Yay!
Jetzt habe ich eine gespielt, make install
aber sie bleibt hier hängen:
Buildfile: /home/pi/rstudio/src/gwt/build.xml
ext:
quelle
apt-get ...
und so./dependencies/linux/install-dependencies-debian
)?apt-get ...
ging alles in Ordnung.git is already the newest version. r-recommended is already the newest version.
Antworten:
Mit einigen Tipps aus diesem Thread (danke!), Einem anderen Stack Overflow-Thread , einer weiteren ARM-Installation (auf einem Chromebook) und vielen Versuchen und Irrtümern konnte ich einen RStudio Server v0.99.491 auf meinem Computer zum Laufen bringen Pi 2.
Sergio, ich denke du vermisst:
Pandoc manuell installieren.
Ein neuer GWT-Compiler. Der folgende Vorgang hängt davon ab, wie Sie Ihre Verzeichnisse eingerichtet haben. Laden Sie im Grunde den neuesten Compiler herunter, entpacken Sie ihn und verschieben Sie ihn in den Ordner "Compiler".
Möglicherweise SWAP-Speicherplatz. Ich hatte gemischte Ergebnisse beim Kompilieren mit und ohne SWAP. Was ich weiß ist, dass ich SWAP verwendet habe, um die funktionierende Installation zu erhalten, die ich jetzt habe.
Für alle anderen, die es nach dem oben beschriebenen Prozess möglicherweise schwer hatten, habe ich mein Bestes getan, um es zu kompilieren. HINWEIS: Es dauert STUNDEN bis
./install-common
undmake install
. Ich glaube, der Bau hat fast 4,5 Stunden gedauertmake install
.Ich sollte hinzufügen, dass es noch ein paar Schritte gibt, um den Server zum Laufen zu bringen, aber hier stelle ich mir vor, dass die meisten Leute feststeckten. Hier sind die nächsten Schritte aus Jrowens ARM-Build auf einem Chromebook :
quelle
3 Jahre später konnte ich basierend auf Dhewletts Antwort RStudio 1.1.463 auf Raspbian Stretch erstellen. Ich habe alles in einen Docker-Build eingefügt, um die Reproduzierbarkeit zu erleichtern. Es besteht aus mehreren Teilen.
Erstellen Sie zunächst eine Build-Umgebung für RStudio. Die Datei Dockerfile.build_env sieht folgendermaßen aus:
Und bauen Sie dieses Bild mit:
Erstellen Sie dann das RStudio Server Debian-Paket mit Dockerfile.server_deb:
Erstellen Sie dieses Image und extrahieren Sie das RStudio Server Debian-Paket:
In ähnlicher Weise verwenden Sie für das RStudio Desktop Debian-Paket Dockerfile.desktop_deb:
Erstellen Sie dieses Image und extrahieren Sie das RStudio Desktop Debian-Paket:
Installieren Sie abschließend die .deb-Pakete mit apt, wodurch auch die abhängigen Pakete abgerufen werden. Stellen Sie jedoch sicher, dass Sie zuerst die Paketliste aktualisieren:
quelle