LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Slackbuild for rstudio (https://www.linuxquestions.org/questions/slackware-14/slackbuild-for-rstudio-942969/)

BroX 08-20-2012 06:02 AM

Latest development version of rstudio (0.97.87) now depends on boost-1.50. Slackware current contains 1.49, but boost-1.50 builds fine with the official boost slackbuild. No edits needed.

Not sure if other packages will need to be rebuild against boost-1.50.

Cheers.

ponce 08-20-2012 09:03 AM

only the whole kde (lol).

BroX 08-20-2012 09:37 AM

Quote:

Originally Posted by ponce (Post 4759165)
only the whole kde (lol).

Thanks for the info, might be good to know for others before attempting this epic project! :D

BroX 08-21-2012 02:54 AM

I'm not using KDE myself (recent convert to tiling windows) but a quick boot into KDE didn't show any mayor problems with upgraded boost. YMMV!

giberg 09-26-2013 03:17 AM

Hi BroX

did you try to build RStudio 0.97.551?

Something goes wrong with PAM, obviously not included in Slackware. I'm building the desktop version, I don't think PAM is necessary.
Any idea?

Code:

In file included from /tmp/build/tmp-rstudio/rstudio-rstudio-c5d01b0/src/cpp/core/system/Pam.cpp:16:0:
/tmp/build/tmp-rstudio/rstudio-rstudio-c5d01b0/src/cpp/core/include/core/system/Pam.hpp:16:31: fatal error: security/pam_appl.h: File o directory non esistente
 #include <security/pam_appl.h>
                              ^
compilation terminated.
make[2]: *** [src/cpp/core/CMakeFiles/rstudio-core.dir/system/Pam.cpp.o] Errore 1
make[1]: *** [src/cpp/core/CMakeFiles/rstudio-core.dir/all] Errore 2
make: *** [all] Errore 2


BroX 09-26-2013 04:00 AM

I get the same error. Currently using rstudio-0.97.449 which built fine.

Version 0.98 will come out soon, so I will wait for that before updating the build script.

emgee_1 09-26-2013 06:26 AM

I converted a package rstudio-0.97.551-x86_64.rpm from rstudio.com


using
Code:

rpm2tgz rstudio-0.97.551-x86_64.rpm
and installed it in the normal way (# installpkg ...)

It works great on slackware 64 14.0


Regards,


Marcel

giberg 09-26-2013 07:46 AM

Quote:

Originally Posted by BroX (Post 5035073)
I get the same error. Currently using rstudio-0.97.449 which built fine.

Version 0.98 will come out soon, so I will wait for that before updating the build script.

No, it doesn't work. Another error... 0.97.449 (it worked till a system update) and 0.97.336.
I have slackware current but I haven't updated to 14.1 beta yet.

This is only the last part. It seems something related to Boost.
Code:

    ^
[ 90%] Building CXX object src/cpp/session/CMakeFiles/rsession.dir/modules/SessionLists.cpp.o
In file included from /usr/include/boost/signals.hpp:9:0,
                from /tmp/build/tmp-rstudio/rstudio-0.97.336/src/cpp/session/include/session/SessionModuleContext.hpp:23,
                from /tmp/build/tmp-rstudio/rstudio-0.97.336/src/cpp/session/modules/SessionLists.cpp:29:
/usr/include/boost/signal.hpp:17:4: warning: #warning "Boost.Signals is no longer being maintained and is now deprecated. Please switch to Boost.Signals2. To disable this warning message, define BOOST_SIGNALS_NO_DEPRECATION_WARNING." [-Wcpp]
 #  warning                  "Boost.Signals is no longer being maintained and is now deprecated. Please switch to Boost.Signals2. To disable this warning message, define BOOST_SIGNALS_NO_DEPRECATION_WARNING."
    ^
[ 90%] Building CXX object src/cpp/session/CMakeFiles/rsession.dir/modules/SessionPackages.cpp.o
In file included from /usr/include/boost/signals.hpp:9:0,
                from /tmp/build/tmp-rstudio/rstudio-0.97.336/src/cpp/session/include/session/SessionModuleContext.hpp:23,
                from /tmp/build/tmp-rstudio/rstudio-0.97.336/src/cpp/session/modules/SessionPackages.cpp:36:
/usr/include/boost/signal.hpp:17:4: warning: #warning "Boost.Signals is no longer being maintained and is now deprecated. Please switch to Boost.Signals2. To disable this warning message, define BOOST_SIGNALS_NO_DEPRECATION_WARNING." [-Wcpp]
 #  warning                  "Boost.Signals is no longer being maintained and is now deprecated. Please switch to Boost.Signals2. To disable this warning message, define BOOST_SIGNALS_NO_DEPRECATION_WARNING."
    ^
In file included from /tmp/build/tmp-rstudio/rstudio-0.97.336/src/cpp/core/include/core/http/TcpIpBlockingClient.hpp:22:0,
                from /tmp/build/tmp-rstudio/rstudio-0.97.336/src/cpp/session/modules/SessionPackages.cpp:29:
/tmp/build/tmp-rstudio/rstudio-0.97.336/src/cpp/core/include/core/http/TcpIpAsyncClient.hpp: In member function 'const boost::shared_ptr<core::http::TcpIpAsyncClient> core::http::TcpIpAsyncClient::sharedFromThis()':
/tmp/build/tmp-rstudio/rstudio-0.97.336/src/cpp/core/include/core/http/TcpIpAsyncClient.hpp:77:14: error: 'shared_static_cast' is not a member of 'boost'
      return boost::shared_static_cast<TcpIpAsyncClient>(ptrShared);
              ^
/tmp/build/tmp-rstudio/rstudio-0.97.336/src/cpp/core/include/core/http/TcpIpAsyncClient.hpp:77:56: error: expected primary-expression before '>' token
      return boost::shared_static_cast<TcpIpAsyncClient>(ptrShared);
                                                        ^
/tmp/build/tmp-rstudio/rstudio-0.97.336/src/cpp/core/include/core/http/TcpIpAsyncClient.hpp:78:4: warning: control reaches end of non-void function [-Wreturn-type]
    }
    ^
make[2]: *** [src/cpp/session/CMakeFiles/rsession.dir/modules/SessionPackages.cpp.o] Errore 1
make[1]: *** [src/cpp/session/CMakeFiles/rsession.dir/all] Errore 2
make: *** [all] Errore 2

I'll try rpm2tgz. ;)

BroX 09-26-2013 08:03 AM

Which version of boost do you have? rstudio depends on boost ≥ 1.50.

Uncomment the # ./install-boost line in the rstudio.Slackbuild if you need an upgraded boost (it will be installed under /opt so it will not touch boost that came with Slackware):
Code:

# additional files need to be downloaded
cd dependencies/common
 ./install-dictionaries
 ./install-gwt
 ./install-mathjax
# ./install-boost


giberg 09-26-2013 08:11 AM

boost 1.54

giberg 09-26-2013 09:01 AM

Quote:

Originally Posted by emgee_1 (Post 5035135)
I converted a package rstudio-0.97.551-x86_64.rpm from rstudio.com


using
Code:

rpm2tgz rstudio-0.97.551-x86_64.rpm
and installed it in the normal way (# installpkg ...)

It works great on slackware 64 14.0


Regards,


Marcel

Ok, it works! Thank you!

BroX 10-06-2013 07:01 AM

Quote:

Originally Posted by giberg (Post 5035051)
Something goes wrong with PAM, obviously not included in Slackware. I'm building the desktop version, I don't think PAM is necessary.
Any idea?

Code:

In file included from /tmp/build/tmp-rstudio/rstudio-rstudio-c5d01b0/src/cpp/core/system/Pam.cpp:16:0:
/tmp/build/tmp-rstudio/rstudio-rstudio-c5d01b0/src/cpp/core/include/core/system/Pam.hpp:16:31: fatal error: security/pam_appl.h: File o directory non esistente
 #include <security/pam_appl.h>
                              ^
compilation terminated.
make[2]: *** [src/cpp/core/CMakeFiles/rstudio-core.dir/system/Pam.cpp.o] Errore 1
make[1]: *** [src/cpp/core/CMakeFiles/rstudio-core.dir/all] Errore 2
make: *** [all] Errore 2


I contacted the developer; PAM dependency has been removed from the desktop version. I succesfully built the latest master branch at github: https://github.com/rstudio/rstudio


All times are GMT -5. The time now is 06:46 PM.