Help with compiling rstudio-server from AUR

Problems with packages? Post here, using [tags] of the package name.

Help with compiling rstudio-server from AUR

Postby chanyufei » Wed Dec 11, 2013 8:42 am

Hi,

I am trying to compile rstudio-server from AUR but without any luck. And I just found this post mentioning that:

$this->bbcode_second_pass_quote('', 'j')ust change /src/gwt/tools/compiler/compiler.jar to https://code.google.com/p/closure-compi ... n=2&q=


Where should I change this in the PKGBUILD? Or should like change something in the "arch-build.patch" file? Right now it reads:


$this->bbcode_second_pass_code('', 'diff -Naur a/src/cpp/server/extras/admin/rstudio-server.in b/src/cpp/server/extras/admin/rstudio-server.in
--- a/src/cpp/server/extras/admin/rstudio-server.in 2013-09-20 09:14:14.000000000 -0500
+++ b/src/cpp/server/extras/admin/rstudio-server.in 2013-09-25 21:02:42.569397076 -0500
@@ -1,13 +1,7 @@
#!/bin/sh

daemonCmd() {
- if test -e /etc/init/rstudio-server.conf
- then
- eval "initctl $1 rstudio-server"
- else
- eval "/etc/init.d/rstudio-server $1"
- fi
- return $?
+ systemctl $1 rstudio-server
}

testConfig() {
diff -Naur a/src/cpp/session/CMakeLists.txt b/src/cpp/session/CMakeLists.txt
--- a/src/cpp/session/CMakeLists.txt 2013-09-20 09:14:14.000000000 -0500
+++ b/src/cpp/session/CMakeLists.txt 2013-09-25 21:01:51.713369905 -0500
@@ -18,12 +18,12 @@
add_subdirectory(workers)

# verify that install-dictionaries and install-mathjax have been run
-if(NOT EXISTS "${RSTUDIO_DEPENDENCIES_DIR}/common/dictionaries")
- message(FATAL_ERROR "Dictionaries not found (re-run install-dependencies script to install)")
-endif()
-if(NOT EXISTS "${RSTUDIO_DEPENDENCIES_DIR}/common/mathjax")
- message(FATAL_ERROR "Mathjax not found (re-run install-dependencies script to install)")
-endif()
+#if(NOT EXISTS "${RSTUDIO_DEPENDENCIES_DIR}/common/dictionaries")
+# message(FATAL_ERROR "Dictionaries not found (re-run install-dependencies script to install)")
+#endif()
+#if(NOT EXISTS "${RSTUDIO_DEPENDENCIES_DIR}/common/mathjax")
+# message(FATAL_ERROR "Mathjax not found (re-run install-dependencies script to install)")
+#endif()

# include files
file(GLOB_RECURSE SESSION_HEADER_FILES "*.h*")
@@ -293,12 +293,12 @@


# install hunspell dictionaries
- install(DIRECTORY "${RSTUDIO_DEPENDENCIES_DIR}/common/dictionaries"
- DESTINATION "${RSTUDIO_INSTALL_SUPPORTING}/resources")
+ #install(DIRECTORY "${RSTUDIO_DEPENDENCIES_DIR}/common/dictionaries"
+ # DESTINATION "${RSTUDIO_INSTALL_SUPPORTING}/resources")

# install mathjax for local html preview
- install(DIRECTORY "${RSTUDIO_DEPENDENCIES_DIR}/common/mathjax"
- DESTINATION "${RSTUDIO_INSTALL_SUPPORTING}/resources")
+ #install(DIRECTORY "${RSTUDIO_DEPENDENCIES_DIR}/common/mathjax"
+ # DESTINATION "${RSTUDIO_INSTALL_SUPPORTING}/resources")

# install 64 bit binaries if we are on win64
if(WIN32)
diff -Naur a/src/gwt/build.xml b/src/gwt/build.xml
--- a/src/gwt/build.xml 2013-09-20 09:14:14.000000000 -0500
+++ b/src/gwt/build.xml 2013-09-25 21:01:51.716703197 -0500
@@ -20,7 +20,7 @@
classname="com.google.javascript.jscomp.ant.CompileTask"
classpath="./tools/compiler/compiler.jar"/>
<!-- Configure path to GWT SDK -->
- <property name="gwt.sdk" value="lib/gwt/2.5.1"/>
+ <property name="gwt.sdk" value="/opt/gwt"/>

<property name="gwt.extra.args" value=""/>
<property name="gwt.main.module" value="org.rstudio.studio.RStudio"/>
@@ -29,7 +29,8 @@
<path id="project.class.path">
<pathelement location="bin"/>
<fileset dir="${gwt.sdk}" includes="*.jar"/>
- <fileset dir="lib/gin/1.5" includes="*.jar"/>
+ <fileset dir="/usr/share/java/google-guice" includes="*.jar"/>
+ <fileset dir="/usr/share/java/gin" includes="*.jar"/>
</path>

<target name="ext">
')

Thank you for the help!
chanyufei
 
Posts: 6
Joined: Sun Oct 06, 2013 6:27 am

Re: Help with compiling rstudio-server from AUR

Postby moonman » Wed Dec 11, 2013 10:02 am

What device and what is the error? I see it requires java and OpenJDK is broken on armv5
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: Help with compiling rstudio-server from AUR

Postby chanyufei » Thu Dec 12, 2013 3:27 pm

Hi Moonman,

I'm using Odroid-XU, please kindly see below for the message during compiling: http://pastebin.com/nC5PxYKh

It hung at

$this->bbcode_second_pass_code('', 'Linking CXX executable rsession
[100%] Built target rsession')
chanyufei
 
Posts: 6
Joined: Sun Oct 06, 2013 6:27 am

Re: Help with compiling rstudio-server from AUR

Postby moonman » Fri Dec 13, 2013 2:29 am

Are you sure it hung? linking may take a while if there is not enough ram. some heavy compiles can take days. Check (h)top for ram usage and cpu load.
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am


Return to Packages

Who is online

Users browsing this forum: No registered users and 5 guests