LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-16-2015, 11:12 PM   #1
koolimy
LQ Newbie
 
Registered: Jun 2015
Posts: 6

Rep: Reputation: Disabled
Rstudio install problem (using sbopkg)


Hello, I have been having a problem with installing Rstudio to my Slackware 64 14.1 distribution. I used sbopkg to install it, and at the end, I get the following error:

I have also installed the following dependencies:

jdk(8u45)
apache-ant (version 1.9.5) - the link on slackbuilds was dead, so I downloaded the 1.9.5 source from the website and used the slackbuild to install it... could this cause a problem? I changed the version in the slackbuild code from 1.9.4 to 1.9.5, but I did not do anything else outside of that.

I have also installed R-3.2.0 from sbopkg.

The problem occurs at the end of the session (after the 99), and although I get multiple warnings regarding boost, it never registers an error until I get the following:

Code:
Linking CXX executable rsession
CMakeFiles/rsession.dir/modules/environment/EnvironmentMonitor.cpp.o:(.bss+0x0): multiple definition of `R_running_as_main_program'
CMakeFiles/rsession.dir/SessionMain.cpp.o:(.bss+0x0): first defined here
CMakeFiles/rsession.dir/modules/environment/SessionEnvironment.cpp.o:(.bss+0x8): multiple definition of `R_running_as_main_program'
CMakeFiles/rsession.dir/SessionMain.cpp.o:(.bss+0x0): first defined here
../r/librstudio-r.a(RExec.cpp.o):(.bss+0x0): multiple definition of `R_running_as_main_program'
CMakeFiles/rsession.dir/SessionMain.cpp.o:(.bss+0x0): first defined here
../r/librstudio-r.a(RSession.cpp.o):(.bss+0x10): multiple definition of `R_running_as_main_program'
CMakeFiles/rsession.dir/SessionMain.cpp.o:(.bss+0x0): first defined here
../r/librstudio-r.a(REmbeddedPosix.cpp.o):(.bss+0x0): multiple definition of `R_running_as_main_program'
CMakeFiles/rsession.dir/SessionMain.cpp.o:(.bss+0x0): first defined here
../r/librstudio-r.a(RSearchPath.cpp.o):(.bss+0x0): multiple definition of `R_running_as_main_program'
CMakeFiles/rsession.dir/SessionMain.cpp.o:(.bss+0x0): first defined here
collect2: error: ld returned 1 exit status
make[2]: *** [src/cpp/session/rsession] Error 1
make[1]: *** [src/cpp/session/CMakeFiles/rsession.dir/all] Error 2
make: *** [all] Error 2
Do you know what might be the problem here?
Thank you in advance.

Last edited by koolimy; 06-16-2015 at 11:53 PM. Reason: Need to include more information
 
Old 06-16-2015, 11:25 PM   #2
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 3,845

Rep: Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118
I think you forgot to install R
 
Old 06-16-2015, 11:44 PM   #3
dslackw
Member
 
Registered: Aug 2014
Location: Orestiada, GR
Distribution: Slackware 14.1 x86_64 -stable
Posts: 145

Rep: Reputation: 31
"apache-ant" link is dead
 
Old 06-16-2015, 11:44 PM   #4
koolimy
LQ Newbie
 
Registered: Jun 2015
Posts: 6

Original Poster
Rep: Reputation: Disabled
Quote:
I think you forgot to install R
willysr, thank you for your reply. However, unfortunately I already have installed R, and the installer will abort early if R is not installed.

Do you have any other suggestions?
 
Old 06-17-2015, 12:32 AM   #5
cdrv
LQ Newbie
 
Registered: Jun 2015
Posts: 1

Rep: Reputation: Disabled
This is a bug in R itself. See: https://bugs.r-project.org/bugzilla3...g.cgi?id=15899

You can work around it by patching `Rinterface.h`; ie, by adding back the missing `extern`.
 
Old 06-17-2015, 12:34 AM   #6
koolimy
LQ Newbie
 
Registered: Jun 2015
Posts: 6

Original Poster
Rep: Reputation: Disabled
Sorry for bothering you guys, I have followed the advice on another thread, which advised to use the tool "rpm2tgz" to convert an rpm file downloaded from the RStudio homepage (the newest version, 0.99.446) into an installable tgz package. Using this tool and installing using the # installpkg command, I was able to install RStudio and get it to work.

Thank you all for your suggestions.
 
Old 06-17-2015, 12:36 AM   #7
koolimy
LQ Newbie
 
Registered: Jun 2015
Posts: 6

Original Poster
Rep: Reputation: Disabled
Thumbs up

Quote:
Originally Posted by cdrv View Post
This is a bug in R itself. See: https://bugs.r-project.org/bugzilla3...g.cgi?id=15899

You can work around it by patching `Rinterface.h`; ie, by adding back the missing `extern`.
Thank you! Although I have already gotten RStudio to work, this seems like important information for anybody trying to install RStudio from the Slackbuilds repository.
 
Old 06-17-2015, 12:39 AM   #8
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 3,845

Rep: Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118
Quote:
Originally Posted by dslackw View Post
"apache-ant" link is dead
Thanks
Fixed on my branch
 
Old 06-17-2015, 11:59 AM   #9
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 3,845

Rep: Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118
Quote:
Originally Posted by cdrv View Post
This is a bug in R itself. See: https://bugs.r-project.org/bugzilla3...g.cgi?id=15899

You can work around it by patching `Rinterface.h`; ie, by adding back the missing `extern`.
Thanks for pointing this bug report.
I have applied the patch on my branch and it will be part of the next public update.
 
Old 06-24-2015, 10:57 AM   #10
s09
Member
 
Registered: Jan 2014
Distribution: Slackware 14.1 (MLED 32-bit)
Posts: 84

Rep: Reputation: Disabled
It seems that 'Rinterface.h' is already fixed in the latest R (3.2.1), but why bother to build the whole RStudio when the *-debian.tar.gz build you can get from rstudio.com works as a charm - just extract it somewhere and run '/bin/rstudio' ...
 
Old 06-24-2015, 12:54 PM   #11
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 5,426

Rep: Reputation: 3206Reputation: 3206Reputation: 3206Reputation: 3206Reputation: 3206Reputation: 3206Reputation: 3206Reputation: 3206Reputation: 3206Reputation: 3206Reputation: 3206
Quote:
Originally Posted by s09 View Post
It seems that 'Rinterface.h' is already fixed in the latest R (3.2.1), but why bother to build the whole RStudio when the *-debian.tar.gz build you can get from rstudio.com works as a charm - just extract it somewhere and run '/bin/rstudio' ...
Some people prefer all files installed into the system to be recognized by the package manager (I certainly do). Using SBo helps with that process...
 
Old 07-04-2015, 07:54 PM   #12
brobr
Member
 
Registered: Oct 2003
Location: uk
Distribution: Slackware
Posts: 532

Rep: Reputation: 143Reputation: 143
Quote:
Originally Posted by koolimy View Post
.. use the tool "rpm2tgz" to convert an rpm file downloaded from the RStudio homepage .. into an installable tgz package. Using this tool and installing using the # installpkg command, .....
on my multilib system the rstudio folder ended up in /usr/lib , not in /usr/lib64; is rpm2tgz only good for 32bit packages?
 
Old 07-04-2015, 08:49 PM   #13
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 3,845

Rep: Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118
http://slackbuilds.org/faq/#multilib
 
Old 07-05-2015, 02:45 AM   #14
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 4,471

Rep: Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377
Quote:
Originally Posted by brobr View Post
on my multilib system the rstudio folder ended up in /usr/lib , not in /usr/lib64; is rpm2tgz only good for 32bit packages?
rpm2tgz just repackages respecting the original directory structure inside the rpm archive, so how file are placed in the tgz depends on the original file.

Last edited by ponce; 07-05-2015 at 05:46 AM.
 
Old 07-05-2015, 07:23 AM   #15
brobr
Member
 
Registered: Oct 2003
Location: uk
Distribution: Slackware
Posts: 532

Rep: Reputation: 143Reputation: 143
Yes, that is how the script works and is fine for 32bit versions as /usr/lib deals with those; /usr/lib64 is how Slackware deals with 64-bit but that, obviously, is unlike the way the others do it. My remarks was just that; pointing out this small complication.
 
  


Reply

Tags
installation, rstudio, sbopkg


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
sbopkg problem... Alexvader Slackware 7 02-03-2014 02:01 AM
Slackbuild for rstudio BroX Slackware 26 10-06-2013 08:01 AM
[SOLVED] How can I install virtualbox with sbopkg on a multilib 64bit? chytraeus Slackware 15 09-11-2013 08:50 PM
[SOLVED] Used sbopkg to download & install Wine - it's been 'installing' for over 1 hr... Robert.Thompson Slackware 6 03-05-2011 04:22 AM
sbopkg after a re-install of slackware 12.2 farmerdave Slackware 0 11-09-2009 05:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration