You are not logged in.

#51 2011-03-09 05:58:50

jowilkin
Member
Registered: 2009-05-07
Posts: 243

Re: New opensource R IDE - package it before everyone else

I ran namcap on the package created by my PKGBUILD and there are several things that need to be looked at in the output

> namcap rstudio-desktop-git-20110308-1-x86_64.pkg.tar.xz 
rstudio-desktop-git E: Insecure RPATH '/opt/rstudio/bin' in file ('opt/rstudio/bin/rdesktop')
rstudio-desktop-git E: Dependency detected and not included (phonon) from files ['opt/rstudio/bin/libQtWebKit.so.4.7.0', 'opt/rstudio/bin/libQtWebKit.so.4']
rstudio-desktop-git W: Referenced library 'libR.so' is an uninstalled dependency
rstudio-desktop-git W: Dependency included but already satisfied ('qt')
rstudio-desktop-git W: Dependency included and not needed ('r')
rstudio-desktop-git W: Dependency included but already satisfied ('pango')
rstudio-desktop-git W: Dependency included and not needed ('openssl')
rstudio-desktop-git W: Dependency included and not needed ('bzip2')
rstudio-desktop-git W: Dependency included and not needed ('pam')
rstudio-desktop-git W: Dependency included and not needed ('java-runtime')
rstudio-desktop-git W: Dependency included and not needed ('unzip')
rstudio-desktop-git W: Dependency included but already satisfied ('glib2')
rstudio-desktop-git W: Dependency included but already satisfied ('libsm')
rstudio-desktop-git W: Dependency included but already satisfied ('libxrender')
rstudio-desktop-git W: Dependency included but already satisfied ('fontconfig')
rstudio-desktop-git W: Dependency included but already satisfied ('libxext')
rstudio-desktop-git E: AGPL is not a common license (it's not in /usr/share/licenses/common/)
rstudio-desktop-git E: ELF file ('opt/rstudio/bin/libphonon.so.4.4.0') outside of a valid path.
rstudio-desktop-git E: ELF file ('opt/rstudio/bin/libQtXml.so.4.7.0') outside of a valid path.
rstudio-desktop-git E: ELF file ('opt/rstudio/bin/rdesktop') outside of a valid path.
rstudio-desktop-git E: ELF file ('opt/rstudio/bin/libQtDBus.so.4.7.0') outside of a valid path.
rstudio-desktop-git E: ELF file ('opt/rstudio/bin/libQtCore.so.4.7.0') outside of a valid path.
rstudio-desktop-git E: ELF file ('opt/rstudio/bin/libQtGui.so.4.7.0') outside of a valid path.
rstudio-desktop-git E: ELF file ('opt/rstudio/bin/libQtWebKit.so.4.7.0') outside of a valid path.
rstudio-desktop-git E: ELF file ('opt/rstudio/bin/rsession') outside of a valid path.
rstudio-desktop-git E: ELF file ('opt/rstudio/bin/libQtNetwork.so.4.7.0') outside of a valid path.
rstudio-desktop-git E: ELF file ('opt/rstudio/bin/libQtSvg.so.4.7.0') outside of a valid path.
rstudio-desktop-git E: ELF file ('opt/rstudio/bin/plugins/imageformats/libqjpeg.so') outside of a valid path.
rstudio-desktop-git E: ELF file ('opt/rstudio/bin/plugins/imageformats/libqtiff.so') outside of a valid path.
rstudio-desktop-git E: ELF file ('opt/rstudio/bin/plugins/imageformats/libqmng.so') outside of a valid path.
rstudio-desktop-git E: ELF file ('opt/rstudio/bin/plugins/imageformats/libqico.so') outside of a valid path.
rstudio-desktop-git E: ELF file ('opt/rstudio/bin/plugins/imageformats/libqgif.so') outside of a valid path.
rstudio-desktop-git E: ELF file ('opt/rstudio/bin/plugins/imageformats/libqsvg.so') outside of a valid path.

Some possible conclusions:
1) phonon needs to be added as a dependency
2) we can remove pango, glib2, libsm, libxrender, fontconfig, and libxext as dependencies because they are redundant (already included as dependencies of some other dependency of rstudio-desktop)
3) openssl, bzip2, pam, unzip can probably be moved to makedepends
4) the license - apparently the AGPL is not included in the common licenses directory so we need to make the license type 'custom' and then copy the license to /usr/share/licenses/$pkgname.

My git PKGBUILD adjusted for those changes follows.  I also modified it so that if you have already cloned the repo in a previous build it will only try to do an update of that repo for a new build instead of doing a new clone.

# Note: Apache ant and java must be on the path for make to succeed.
pkgname=rstudio-desktop-git
pkgver=20110309
pkgrel=1
pkgdesc="A new integrated development environment (IDE) for R"
arch=('i686' 'x86_64')
url="http://www.rstudio.org/"
license=('custom')
depends=('qt' 'r' 'java-runtime' 'phonon')
makedepends=('git' 'cmake' 'boost' 'apache-ant' 'unzip' 'openssl' 'bzip2' 'pam')
provides=('rstudio-desktop')
conflicts=('rstudio-desktop')

_gitroot="git://github.com/rstudio/rstudio.git"
_gitname="rstudio"

build() {
  cd "$srcdir"
  echo "Entering $srcdir"
  if [ -d "$_gitname" ] ; then
    msg "Updating repository from server...."
    cd "$_gitname"
  else
    msg "Cloning from GIT server...."
    git clone "$_gitroot" "$_gitname"
  fi

  cd "$srcdir/$_gitname"
  git submodule update --init --recursive
  msg "GIT checkout and submodule update done or server timeout"

  # Clone source into a new local repo for build
  rm -rf "$srcdir/$_gitname-build"
  git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"

  # Install Qt sdk
  msg "Downloading and installing Qt SDK"
  cd $srcdir/$_gitname-build/dependencies/linux
  ./install-qt-sdk

  # Install gwt - this creates files inside the src package that are needed for the build
  msg "Downloading and installing gwt"
  cd "$srcdir/$_gitname-build/dependencies/common"
  ./install-dependencies-java

  # Configure with cmake in a new buld directory as recommended in the rstudio INSTALL file
  msg "Configuring the makefile with cmake"
  mkdir "$srcdir/$_gitname-build/build"
  cd "$srcdir/$_gitname-build/build"
  # Configure cmake to install to /opt/rstudio
  cmake -DRSTUDIO_TARGET=Desktop -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/opt/rstudio ..
}

package() {
  msg "Starting make and install...."
  cd "$srcdir/$_gitname-build/build"
  make DESTDIR="$pkgdir/" install
  
  msg "Installing license...."
  install -D -m644 "$srcdir/$_gitname-build/COPYING" "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
}

Edit: qt is also a dependency of phonon, so it could be safely removed as a dependency as well once phonon is added.  I decided to add the git package to the AUR since I am using it anyway and it looks like Ben will be maintaining a tarball'd version of the package which will provide a more stable option for others who prefer that.

Last edited by jowilkin (2011-03-09 06:15:54)

Offline

#52 2011-03-09 22:06:16

jowilkin
Member
Registered: 2009-05-07
Posts: 243

Re: New opensource R IDE - package it before everyone else

kljohann wrote:

I think this huge sdk download is not necessary at all since all this is included in the 'qt' package. I will try to throw together a PKGBUILD (although testing and building will very likely take ages on my netbook).

I think this is true, but the make process is not finding the necessary Qt libs during the build for some reason.  It would be very nice to get rid of the qt sdk dependency.

Offline

#53 2011-03-10 07:50:32

Ben9250
Member
From: Bath - England
Registered: 2010-06-10
Posts: 208
Website

Re: New opensource R IDE - package it before everyone else

The stable tarball is up, so the rstudio-desktop non-git version now uses it instead. Is there some trick to handling the random letter and number components, likely generated from dates or something, currently I'm assigning the number to a user-defined variable and keep checking it myself everyday. I'm wondering if there is a trick to eliminate that random component to the extracted filename.
I've also moved and removed dependencies and makedepends componenets according to comments above, and will be seen next time I re-upload to AUR.


"In England we have come to rely upon a comfortable time-lag of fifty years or a century intervening between the perception that something ought to be done and a serious attempt to do it."
  - H. G. Wells

Offline

#54 2011-03-10 20:05:57

jowilkin
Member
Registered: 2009-05-07
Posts: 243

Re: New opensource R IDE - package it before everyone else

The rstudio developers mentioned that they pushed a change that should allow compilation with boost 1.46.  I just tried it out and was able to build successfully smile

Offline

#55 2011-03-10 21:13:20

jowilkin
Member
Registered: 2009-05-07
Posts: 243

Re: New opensource R IDE - package it before everyone else

jowilkin wrote:
kljohann wrote:

I think this huge sdk download is not necessary at all since all this is included in the 'qt' package. I will try to throw together a PKGBUILD (although testing and building will very likely take ages on my netbook).

I think this is true, but the make process is not finding the necessary Qt libs during the build for some reason.  It would be very nice to get rid of the qt sdk dependency.

So I've looked more deeply into this issue.  The libraries are indeed in the qt package already, but the way it builds right now, RStudio gets a copy of those libraries and puts them in it's own bin directory and then uses the RPATH to specify those as the libs to use (as you can see in the output of namcap in my previous post).

The output of ldd shows this as several libraries are located in /opt/rstudio/bin :

> ldd ./rstudio 
    linux-vdso.so.1 =>  (0x00007fff167ff000)
    libQtWebKit.so.4 => /opt/rstudio/bin/libQtWebKit.so.4 (0x00007fb1adaf7000)
    libQtGui.so.4 => /opt/rstudio/bin/libQtGui.so.4 (0x00007fb1acd32000)
    libQtXmlPatterns.so.4 => /usr/lib/libQtXmlPatterns.so.4 (0x00007fb1ac6ca000)
    libQtNetwork.so.4 => /opt/rstudio/bin/libQtNetwork.so.4 (0x00007fb1ac382000)
    libQtCore.so.4 => /opt/rstudio/bin/libQtCore.so.4 (0x00007fb1abe9c000)
    libpthread.so.0 => /lib/libpthread.so.0 (0x00007fb1abc7f000)
    libuuid.so.1 => /lib/libuuid.so.1 (0x00007fb1aba7b000)
    libz.so.1 => /usr/lib/libz.so.1 (0x00007fb1ab863000)
    libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007fb1ab559000)
    libm.so.6 => /lib/libm.so.6 (0x00007fb1ab2d6000)
    libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x00007fb1ab0c0000)
    libc.so.6 => /lib/libc.so.6 (0x00007fb1aad5f000)
    libXrender.so.1 => /usr/lib/libXrender.so.1 (0x00007fb1aab55000)
    libphonon.so.4 => /opt/rstudio/bin/libphonon.so.4 (0x00007fb1aa8f5000)
    libQtDBus.so.4 => /opt/rstudio/bin/libQtDBus.so.4 (0x00007fb1aa66a000)
    libQtXml.so.4 => /opt/rstudio/bin/libQtXml.so.4 (0x00007fb1aa41e000)
    libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0x00007fb1aa1ea000)
    libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x00007fb1a9f51000)
    libXext.so.6 => /usr/lib/libXext.so.6 (0x00007fb1a9d3f000)
    libX11.so.6 => /usr/lib/libX11.so.6 (0x00007fb1a9a01000)
    libgthread-2.0.so.0 => /usr/lib/libgthread-2.0.so.0 (0x00007fb1a97fd000)
    librt.so.1 => /lib/librt.so.1 (0x00007fb1a95f5000)
    libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0x00007fb1a930e000)
    libgobject-2.0.so.0 => /usr/lib/libgobject-2.0.so.0 (0x00007fb1a90bf000)
    libSM.so.6 => /usr/lib/libSM.so.6 (0x00007fb1a8eb8000)
    libICE.so.6 => /usr/lib/libICE.so.6 (0x00007fb1a8c9d000)
    libdl.so.2 => /lib/libdl.so.2 (0x00007fb1a8a99000)
    /lib/ld-linux-x86-64.so.2 (0x00007fb1af2cb000)
    libexpat.so.1 => /usr/lib/libexpat.so.1 (0x00007fb1a8870000)
    libxcb.so.1 => /usr/lib/libxcb.so.1 (0x00007fb1a8655000)
    libpcre.so.0 => /lib/libpcre.so.0 (0x00007fb1a841a000)
    libXau.so.6 => /usr/lib/libXau.so.6 (0x00007fb1a8218000)
    libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0x00007fb1a8013000)

Since the libraries already exist on the system in the standard places, I tried simply removing the libraries that the make process had put in /opt/rstudio/bin.  This is the result of running ldd after removing them:

> ldd ./rstudio 
    linux-vdso.so.1 =>  (0x00007ffff65ff000)
    libQtWebKit.so.4 => /usr/lib/libQtWebKit.so.4 (0x00007ff330c7b000)
    libQtGui.so.4 => /usr/lib/libQtGui.so.4 (0x00007ff32ffe5000)
    libQtXmlPatterns.so.4 => /usr/lib/libQtXmlPatterns.so.4 (0x00007ff32f97d000)
    libQtNetwork.so.4 => /usr/lib/libQtNetwork.so.4 (0x00007ff32f655000)
    libQtCore.so.4 => /usr/lib/libQtCore.so.4 (0x00007ff32f1c4000)
    libpthread.so.0 => /lib/libpthread.so.0 (0x00007ff32efa7000)
    libuuid.so.1 => /lib/libuuid.so.1 (0x00007ff32eda3000)
    libz.so.1 => /usr/lib/libz.so.1 (0x00007ff32eb8b000)
    libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007ff32e881000)
    libm.so.6 => /lib/libm.so.6 (0x00007ff32e5fe000)
    libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x00007ff32e3e8000)
    libc.so.6 => /lib/libc.so.6 (0x00007ff32e087000)
    libXrender.so.1 => /usr/lib/libXrender.so.1 (0x00007ff32de7d000)
    libsqlite3.so.0 => /usr/lib/libsqlite3.so.0 (0x00007ff32dbe2000)
    libX11.so.6 => /usr/lib/libX11.so.6 (0x00007ff32d8a4000)
    libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0x00007ff32d5bd000)
    libpng14.so.14 => /usr/lib/libpng14.so.14 (0x00007ff32d394000)
    libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x00007ff32d0fb000)
    libgobject-2.0.so.0 => /usr/lib/libgobject-2.0.so.0 (0x00007ff32ceac000)
    libSM.so.6 => /usr/lib/libSM.so.6 (0x00007ff32cca5000)
    libICE.so.6 => /usr/lib/libICE.so.6 (0x00007ff32ca8a000)
    libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0x00007ff32c856000)
    libXext.so.6 => /usr/lib/libXext.so.6 (0x00007ff32c644000)
    libssl.so.1.0.0 => /usr/lib/libssl.so.1.0.0 (0x00007ff32c3e8000)
    libcrypto.so.1.0.0 => /usr/lib/libcrypto.so.1.0.0 (0x00007ff32c02c000)
    libdl.so.2 => /lib/libdl.so.2 (0x00007ff32be28000)
    libgthread-2.0.so.0 => /usr/lib/libgthread-2.0.so.0 (0x00007ff32bc24000)
    librt.so.1 => /lib/librt.so.1 (0x00007ff32ba1c000)
    /lib/ld-linux-x86-64.so.2 (0x00007ff33237f000)
    libxcb.so.1 => /usr/lib/libxcb.so.1 (0x00007ff32b801000)
    libpcre.so.0 => /lib/libpcre.so.0 (0x00007ff32b5c6000)
    libexpat.so.1 => /usr/lib/libexpat.so.1 (0x00007ff32b39d000)
    libXau.so.6 => /usr/lib/libXau.so.6 (0x00007ff32b19b000)
    libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0x00007ff32af96000)

So the executable was now able to find all the libraries it needed in /usr/lib instead of in rstudio's directory.  The executable also ran fine after this change, so we don't need the build process to create those libraries in /opt/rstudio/bin and we don't need to set the RPATH to /opt/rstudio/bin either.

tl;dr we should be able to patch the build to remove the libraries in /opt/rstudio/bin so that standard system libraries are used.  This would remove the huge Qt SDK download and install from the PKGBUILD.

Last edited by jowilkin (2011-03-10 21:14:14)

Offline

#56 2011-03-10 22:58:33

Ben9250
Member
From: Bath - England
Registered: 2010-06-10
Posts: 208
Website

Re: New opensource R IDE - package it before everyone else

How would this be done ( at the limits of my knowlege here )? An additional file that does the RPATH altering stuff and the exclusion of the sdk build in the PKGBUILD?
Because I'm slightly confused as to you saying it needs patching, but when you deleted the library files the exec's just find the others. Although I suppose perhaps the build process complains if one tries it without doing the step installing sdk as it wants, as that was the source of errors when trying to manually build when I didn't install sdk as it asked?

Last edited by Ben9250 (2011-03-10 23:03:24)


"In England we have come to rely upon a comfortable time-lag of fifty years or a century intervening between the perception that something ought to be done and a serious attempt to do it."
  - H. G. Wells

Offline

#57 2011-03-11 05:30:25

jowilkin
Member
Registered: 2009-05-07
Posts: 243

Re: New opensource R IDE - package it before everyone else

Well the situation was that if I did not have Qt SDK installed, the build would fail.  However, if I installed Qt SDK and then built the package and installed it, and then removed the lib files that had been copied into the package from the Qt SDK, the program would still run because it would use the Qt libraries already on the system.

This led me to believe that the only thing the Qt SDK was used for during the build was to copy these files into the rstudio bin directory, so we should have been able to alter the build to not bother copying these files over.

BUT the RStudio devs just streamlined the build process nicely and you no longer need the Qt SDK smile  I updated rstudio-desktop-git package to reflect the new process.

Offline

#58 2011-03-12 11:14:06

Pank
Member
From: IT
Registered: 2009-06-13
Posts: 370

Re: New opensource R IDE - package it before everyone else

Does anybody know why I get this error

-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Boost version: 1.46.0
-- Found the following Boost libraries:
--   date_time
--   filesystem
--   iostreams
--   program_options
--   regex
--   signals
--   system
--   thread
-- Found LibR: /usr/lib/R 
-- Performing Test LIBR_MINIMUM_VERSION
-- Performing Test LIBR_MINIMUM_VERSION - Success
-- Looking for SA_NOCLDWAIT
-- Looking for SA_NOCLDWAIT - found
-- Looking for inotify_init1
-- Looking for inotify_init1 - found
-- Looking for SO_PEERCRED
-- Looking for SO_PEERCRED - found
-- Looking for getpeereid
-- Looking for getpeereid - not found
-- checking for module 'pangocairo>=1.14'
--   found pangocairo, version 1.28.3
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found.
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found.
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found.
CMake Error at /usr/share/cmake-2.8/Modules/FindQt4.cmake:1096 (MESSAGE):
  Qt libraries, includes, moc, uic or/and rcc NOT found!
Call Stack (most recent call first):
  src/cpp/desktop/CMakeLists.txt:17 (find_package)


-- Configuring incomplete, errors occurred!
    Aborting...

Arch x64 on Thinkpad X200s/W530

Offline

#59 2011-03-12 19:48:37

jowilkin
Member
Registered: 2009-05-07
Posts: 243

Re: New opensource R IDE - package it before everyone else

Pank wrote:

Does anybody know why I get this error

Well that is the same error I got in this post: https://bbs.archlinux.org/viewtopic.php … 70#p899070 when I tried to remove the Qt SDK and do the build without it.  That was before the devs patched the build so it could use an existing installation of Qt.  So if you are building against an older version you will get that error if you don't have the Qt SDK installed via the install_qt_sdk script.  If you are building against a newer version of rstudio and have Qt installed, I don't know why you would get that error.

Offline

#60 2011-03-13 20:12:36

cbrunos
Member
Registered: 2010-07-22
Posts: 55

Re: New opensource R IDE - package it before everyone else

I tried to uninstall the qt-sdk. Rstudio still works, but now I can't update, he tells me libraries are missing. I use rstudio-desktop-git by the way.


Xmonad gets sh*t done. Fast.

Offline

#61 2011-03-14 02:16:13

jowilkin
Member
Registered: 2009-05-07
Posts: 243

Re: New opensource R IDE - package it before everyone else

Hmm perhaps Qt SDK is still needed then.  I will have to try contacting the RStudio devs, in the meantime I will put the Qt SDK piece back into the PKGBUILD.

Offline

#62 2011-03-19 02:25:56

Ben9250
Member
From: Bath - England
Registered: 2010-06-10
Posts: 208
Website

Re: New opensource R IDE - package it before everyone else

Hey Guys, I recieved a message from someone:

Hi

im a neewb trying to install r-studio. i get this error :

-> Extracting v0.93.35 with bsdtar
==> Starting build()...
which: no ant in (/home/zeltak/bin/scrot:/home/zeltak/bin:/home/zeltak/bin/scrot:/home/zeltak/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/lib/perl5/site_perl/bin:/usr/bin/vendor_perl:/usr/lib/perl5/vendor_perl/bin:/usr/bin/core_perl)
Aborting...
The build failed

is there someway to fix it?

thx

Z.

I thought that maybe that this was because ant wasn't in the path - referring to the fact the script no longer does the linking of ant any-more, because it's bad practice. Although I've always been a bit confused about the path, as windows has spoiled me with the control panel window for simply adding things to the PATH system variables. I've read people adding things to path I think using bash_profile and bashrc, but that's never explained to me how some things when installed - like R from the package manager for instance, they are already in the path as they run from terminal, presumably because of the file in usr/bin, additionally the profile file is used for path variables, and I understand there can be differences between bash and sh for example, and it even changes for su. Anyway I just thought to ask whether my hunch was correct, and how might be the 'best' way to add ant to the path, for people who don't already know, or people like me, who kinda know but aren't too clear.

Cheers,
Ben W.


"In England we have come to rely upon a comfortable time-lag of fifty years or a century intervening between the perception that something ought to be done and a serious attempt to do it."
  - H. G. Wells

Offline

#63 2011-03-20 01:36:36

jowilkin
Member
Registered: 2009-05-07
Posts: 243

Re: New opensource R IDE - package it before everyone else

The ant package does put the executable on your path, but it doesn't happen until you log out and log back in because of the way it's done.  The package creates a file called apache-ant.sh in /etc/profile.d, the contents of the file is

export ANT_HOME=/usr/share/java/apache-ant
export PATH=$PATH:$ANT_HOME/bin

That file is sourced when you login, and when that happens, ant gets added to your path.  The problem people are having is that if you install ant with pacman, this file will not be sourced until the next time you login.

So what happens is someone tries to build RStudio, apache-ant package gets installed as a dependency, and then the build of RStudio starts.  Since this person has not logged back in since they installed ant, ant is now not on their PATH.  If they log out and log back in, ant will be on their path.  I suppose they could also run

source /etc/profile.d/apache-ant.sh

and that will fix it without logging out and logging back in.

Edit: A similar thing happens with the Java packages.  They also need to set the JAVA_HOME environment variable and do so via scripts in /etc/profile.d that are automatically run on login.  The openjdk6 package puts its executable in a location that should already be on people's path (/usr/bin), but it sets the JAVA_HOME environment variable in a /etc/profile.d script.  The jdk package needs to set JAVA_HOME and modify the PATH in a /etc/profile.d script.

BTW Ben, check out the dependencies on my rstudio-desktop-git package on the AUR, I think they are much improved from the ones I listed in this thread a while back.

Last edited by jowilkin (2011-03-20 01:46:23)

Offline

#64 2011-06-14 10:15:44

earlycj5
Member
From: Metro Manila, Philippines
Registered: 2009-02-23
Posts: 4

Re: New opensource R IDE - package it before everyone else

I'm having issues getting this to compile, it gets to 81% and stops with an error message about ld?

[ 81%] Building CXX object src/cpp/desktop/CMakeFiles/rstudio.dir/qrc_desktop.cxx.o
Linking CXX executable rstudio
/usr/bin/ld: unrecognized option '--as-needed;-Wl'
/usr/bin/ld: use the --help option for usage information
collect2: ld returned 1 exit status
make[2]: *** [src/cpp/desktop/rstudio] Error 1
make[1]: *** [src/cpp/desktop/CMakeFiles/rstudio.dir/all] Error 2
make: *** [all] Error 2
==> ERROR: A failure occurred in package().
Aborting...

Offline

#65 2011-06-16 05:06:25

earlycj5
Member
From: Metro Manila, Philippines
Registered: 2009-02-23
Posts: 4

Re: New opensource R IDE - package it before everyone else

earlycj5 wrote:

I'm having issues getting this to compile, it gets to 81% and stops with an error message about ld?

[ 81%] Building CXX object src/cpp/desktop/CMakeFiles/rstudio.dir/qrc_desktop.cxx.o
Linking CXX executable rstudio
/usr/bin/ld: unrecognized option '--as-needed;-Wl'
/usr/bin/ld: use the --help option for usage information
collect2: ld returned 1 exit status
make[2]: *** [src/cpp/desktop/rstudio] Error 1
make[1]: *** [src/cpp/desktop/CMakeFiles/rstudio.dir/all] Error 2
make: *** [all] Error 2
==> ERROR: A failure occurred in package().
Aborting...

Since I never got a response here, I asked the rstudio developers.

They made a suggestion, but it didn't work and suggested that I'd have to ask someone who was more familiar with Arch.

Anyone?  This is really frustrating as I depend on R for my work and have been using RStudio since it was introduced.

Offline

#66 2011-06-16 05:48:50

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 6,816

Re: New opensource R IDE - package it before everyone else

Your CXXFLAGS from /etc/makepkg.conf please. Looks like its screwed up (the colon should not be there).


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#67 2011-06-17 10:30:12

earlycj5
Member
From: Metro Manila, Philippines
Registered: 2009-02-23
Posts: 4

Re: New opensource R IDE - package it before everyone else

From another user in the RStudio forum, commenting out the LDFlags line in "makepkg.conf" corrected the issue for me.

There is no ";" in it?

`CXXFLAGS="-march=x86-64 -mtune=generic -O2 -pipe`

However, now that it compiles and installs, there is no menu item for it, synapse doesn't find it, searching in Gnome-shell doesn't find it.

Last edited by earlycj5 (2011-06-17 10:32:05)

Offline

#68 2011-06-20 05:13:54

earlycj5
Member
From: Metro Manila, Philippines
Registered: 2009-02-23
Posts: 4

Re: New opensource R IDE - package it before everyone else

FWIW, I modified my r.desktop file to create an rstudio.desktop file.

It would be nice though, if the AUR did this automatically.

Offline

Board footer

Powered by FluxBB