Linking error during make install of Rstudio

rstudio

#1

I am trying to install RStudio on Linux Redhat. Since I don't have root access, I have to build from source. I followed closely the instructions in "Install". After running "make install", I hit the following errors about 40% through when it's building "diagnostics" whatever that is.

**I googled the errors, seeing that a lot of them are some "undefined reference" errors. One common suggestion is to add the macro -D_GLIBCXX_USE_CXX11_ABI=0 to the command line used to compile it, **
**Apparently, this commonly happens when linking to a third-party library that was compiled with an older version of GCC" (https://stackoverflow.com/questions/40705852/undefined-reference-to-std-cxx11basic-string-in-boost-on-travis-ci, **

This did not fix the problem. This is really frustrating. Can someone shed some light on this. Much appreciated!

[ 39%] Building CXX object src/cpp/r/CMakeFiles/rstudio-r.dir/session/graphics/RGraphicsUtils.cpp.o
[ 39%] Building CXX object src/cpp/r/CMakeFiles/rstudio-r.dir/session/graphics/RGraphicsDevDesc.cpp.o
[ 39%] Building CXX object src/cpp/r/CMakeFiles/rstudio-r.dir/session/graphics/RGraphicsHandler.cpp.o
[ 40%] Building CXX object src/cpp/r/CMakeFiles/rstudio-r.dir/session/graphics/RShadowPngGraphicsHandler.cpp.o
[ 40%] Building CXX object src/cpp/r/CMakeFiles/rstudio-r.dir/session/REmbeddedPosix.cpp.o
[ 40%] Linking CXX static library librstudio-r.a
[ 40%] Built target rstudio-r
Scanning dependencies of target diagnostics
[ 40%] Building CXX object src/cpp/diagnostics/CMakeFiles/diagnostics.dir/DiagnosticsMain.cpp.o
[ 40%] Linking CXX executable diagnostics
../core/librstudio-core.a(PosixSystem.cpp.o): In function bool rstudio::core::regex_utils::match<__gnu_cxx::__normal_iterator<char const*, std::string>, boost::match_results<__gnu_cxx::__normal_iterator<char const*, std::string>, std::allocator<boost::sub_match<__gnu_cxx::__normal_iterator<char const*, std::string> > > >, boost::basic_regex<char, boost::regex_traits<char, boost::cpp_regex_traits<char> > > >(__gnu_cxx::__normal_iterator<char const*, std::string>, __gnu_cxx::__normal_iterator<char const*, std::string>, boost::match_results<__gnu_cxx::__normal_iterator<char const*, std::string>, std::allocator<boost::sub_match<__gnu_cxx::__normal_iterator<char const*, std::string> > > >&, boost::basic_regex<char, boost::regex_traits<char, boost::cpp_regex_traits<char> > > const&, boost::regex_constants::_match_flags)': PosixSystem.cpp:(.text._ZN7rstudio4core11regex_utils5matchIN9__gnu_cxx17__normal_iteratorIPKcSsEEN5boost13match_resultsIS7_SaINS8_9sub_matchIS7_EEEEENS8_11basic_regexIcNS8_12regex_traitsIcNS8_16cpp_regex_traitsIcEEEEEEEEbT_SK_RT0_RKT1_NS8_15regex_constants12_match_flagsE[_ZN7rstudio4core11regex_utils5matchIN9__gnu_cxx17__normal_iteratorIPKcSsEEN5boost13match_resultsIS7_SaINS8_9sub_matchIS7_EEEEENS8_11basic_regexIcNS8_12regex_traitsIcNS8_16cpp_regex_traitsIcEEEEEEEEbT_SK_RT0_RKT1_NS8_15regex_constants12_match_flagsE]+0xfc): undefined reference toboost::re_detail_106501::perl_matcher<__gnu_cxx::__normal_iterator<char const*, std::string>, std::allocator<boost::sub_match<__gnu_cxx::__normal_iterator<char const*, std::string> > >, boost::regex_traits<char, boost::cpp_regex_traits > >::construct_init(boost::basic_regex<char, boost::regex_traits<char, boost::cpp_regex_traits > > const&, boost::regex_constants::_match_flags)'
../core/librstudio-core.a(Backtrace.cpp.o): In function char const* boost::re_detail_106501::re_is_set_member<char const*, char, boost::regex_traits<char, boost::cpp_regex_traits<char> >, unsigned int>(char const*, char const*, boost::re_detail_106501::re_set_long<unsigned int> const*, boost::re_detail_106501::regex_data<char, boost::regex_traits<char, boost::cpp_regex_traits<char> > > const&, bool)': Backtrace.cpp:(.text._ZN5boost16re_detail_10650116re_is_set_memberIPKccNS_12regex_traitsIcNS_16cpp_regex_traitsIcEEEEjEET_S8_S8_PKNS0_11re_set_longIT2_EERKNS0_10regex_dataIT0_T1_EEb[_ZN5boost16re_detail_10650116re_is_set_memberIPKccNS_12regex_traitsIcNS_16cpp_regex_traitsIcEEEEjEET_S8_S8_PKNS0_11re_set_longIT2_EERKNS0_10regex_dataIT0_T1_EEb]+0x166): undefined reference toboost::re_detail_106501::cpp_regex_traits_implementation::transform_primary(char const*, char const*) const'
Backtrace.cpp:(.text._ZN5boost16re_detail_10650116re_is_set_memberIPKccNS_12regex_traitsIcNS_16cpp_regex_traitsIcEEEEjEET_S8_S8_PKNS0_11re_set_longIT2_EERKNS0_10regex_dataIT0_T1_EEb[_ZN5boost16re_detail_10650116re_is_set_memberIPKccNS_12regex_traitsIcNS_16cpp_regex_traitsIcEEEEjEET_S8_S8_PKNS0_11re_set_longIT2_EERKNS0_10regex_dataIT0_T1_EEb]+0x39a): undefined reference to boost::re_detail_106501::cpp_regex_traits_implementation<char>::transform(char const*, char const*) const' ../core/librstudio-core.a(StringUtils.cpp.o): In functionrstudio::core::string_utils::extractCommentHeader(std::string const&, std::string const&, std::string*)':
StringUtils.cpp:(.text+0x2266): undefined reference to boost::re_detail_106501::perl_matcher<__gnu_cxx::__normal_iterator<char const*, std::string>, std::allocator<boost::sub_match<__gnu_cxx::__normal_iterator<char const*, std::string> > >, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::construct_init(boost::basic_regex<char, boost::regex_traits<char, boost::cpp_regex_traits<char> > > const&, boost::regex_constants::_match_flags)' ../core/librstudio-core.a(StringUtils.cpp.o): In functionbool boost::regex_search<__gnu_cxx::__normal_iterator<char const*, std::string>, std::allocator<boost::sub_match<__gnu_cxx::__normal_iterator<char const*, std::string> > >, char, boost::regex_traits<char, boost::cpp_regex_traits > >(__gnu_cxx::__normal_iterator<char const*, std::string>, __gnu_cxx::__normal_iterator<char const*, std::string>, boost::match_results<__gnu_cxx::__normal_iterator<char const*, std::string>, std::allocator<boost::sub_match<__gnu_cxx::__normal_iterator<char const*, std::string> > > >&, boost::basic_regex<char, boost::regex_traits<char, boost::cpp_regex_traits > > const&, boost::regex_constants::_match_flags, __gnu_cxx::__normal_iterator<char const*, std::string>)':
StringUtils.cpp:(.text.ZN5boost12regex_searchIN9__gnu_cxx17__normal_iteratorIPKcSsEESaINS_9sub_matchIS5_EEEcNS_12regex_traitsIcNS_16cpp_regex_traitsIcEEEEEEbT_SD_RNS_13match_resultsISD_T0_EERKNS_11basic_regexIT1_T2_EENS_15regex_constants12_match_flagsESD[ZN5boost12regex_searchIN9__gnu_cxx17__normal_iteratorIPKcSsEESaINS_9sub_matchIS5_EEEcNS_12regex_traitsIcNS_16cpp_regex_traitsIcEEEEEEbT_SD_RNS_13match_resultsISD_T0_EERKNS_11basic_regexIT1_T2_EENS_15regex_constants12_match_flagsESD]+0x16a): undefined reference to boost::re_detail_106501::perl_matcher<__gnu_cxx::__normal_iterator<char const*, std::string>, std::allocator<boost::sub_match<__gnu_cxx::__normal_iterator<char const*, std::string> > >, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::construct_init(boost::basic_regex<char, boost::regex_traits<char, boost::cpp_regex_traits<char> > > const&, boost::regex_constants::_match_flags)' ../core/librstudio-core.a(StringUtils.cpp.o): In functionbool boost::regex_search<__gnu_cxx::__normal_iterator<char const*, std::string>, char, boost::regex_traits<char, boost::cpp_regex_traits > >(__gnu_cxx::__normal_iterator<char const*, std::string>, __gnu_cxx::__normal_iterator<char const*, std::string>, boost::basic_regex<char, boost::regex_traits<char, boost::cpp_regex_traits > > const&, boost::regex_constants::_match_flags)':
StringUtils.cpp:(.text._ZN5boost12regex_searchIN9__gnu_cxx17__normal_iteratorIPKcSsEEcNS_12regex_traitsIcNS_16cpp_regex_traitsIcEEEEEEbT_SA_RKNS_11basic_regexIT0_T1_EENS_15regex_constants12_match_flagsE[_ZN5boost12regex_searchIN9__gnu_cxx17__normal_iteratorIPKcSsEEcNS_12regex_traitsIcNS_16cpp_regex_traitsIcEEEEEEbT_SA_RKNS_11basic_regexIT0_T1_EENS_15regex_constants12_match_flagsE]+0x199): undefined reference to boost::re_detail_106501::perl_matcher<__gnu_cxx::__normal_iterator<char const*, std::string>, std::allocator<boost::sub_match<__gnu_cxx::__normal_iterator<char const*, std::string> > >, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::construct_init(boost::basic_regex<char, boost::regex_traits<char, boost::cpp_regex_traits<char> > > const&, boost::regex_constants::_match_flags)' ../core/librstudio-core.a(StringUtils.cpp.o): In function__gnu_cxx::__normal_iterator<char const*, std::string> boost::re_detail_106501::re_is_set_member<__gnu_cxx::__normal_iterator<char const*, std::string>, char, boost::regex_traits<char, boost::cpp_regex_traits >, unsigned int>(__gnu_cxx::__normal_iterator<char const*, std::string>, __gnu_cxx::__normal_iterator<char const*, std::string>, boost::re_detail_106501::re_set_long const*, boost::re_detail_106501::regex_data<char, boost::regex_traits<char, boost::cpp_regex_traits > > const&, bool)':
StringUtils.cpp:(.text._ZN5boost16re_detail_10650116re_is_set_memberIN9__gnu_cxx17__normal_iteratorIPKcSsEEcNS_12regex_traitsIcNS_16cpp_regex_traitsIcEEEEjEET_SB_SB_PKNS0_11re_set_longIT2_EERKNS0_10regex_dataIT0_T1_EEb[_ZN5boost16re_detail_10650116re_is_set_memberIN9__gnu_cxx17__normal_iteratorIPKcSsEEcNS_12regex_traitsIcNS_16cpp_regex_traitsIcEEEEjEET_SB_SB_PKNS0_11re_set_longIT2_EERKNS0_10regex_dataIT0_T1_EEb]+0x17d): undefined reference to boost::re_detail_106501::cpp_regex_traits_implementation<char>::transform_primary(char const*, char const*) const' StringUtils.cpp:(.text._ZN5boost16re_detail_10650116re_is_set_memberIN9__gnu_cxx17__normal_iteratorIPKcSsEEcNS_12regex_traitsIcNS_16cpp_regex_traitsIcEEEEjEET_SB_SB_PKNS0_11re_set_longIT2_EERKNS0_10regex_dataIT0_T1_EEb[_ZN5boost16re_detail_10650116re_is_set_memberIN9__gnu_cxx17__normal_iteratorIPKcSsEEcNS_12regex_traitsIcNS_16cpp_regex_traitsIcEEEEjEET_SB_SB_PKNS0_11re_set_longIT2_EERKNS0_10regex_dataIT0_T1_EEb]+0x3ae): undefined reference toboost::re_detail_106501::cpp_regex_traits_implementation::transform(char const*, char const*) const'
../core/librstudio-core.a(StringUtils.cpp.o): In function boost::re_detail_106501::perl_matcher<__gnu_cxx::__normal_iterator<char const*, std::string>, std::allocator<boost::sub_match<__gnu_cxx::__normal_iterator<char const*, std::string> > >, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::match_prefix()': StringUtils.cpp:(.text._ZN5boost16re_detail_10650112perl_matcherIN9__gnu_cxx17__normal_iteratorIPKcSsEESaINS_9sub_matchIS6_EEENS_12regex_traitsIcNS_16cpp_regex_traitsIcEEEEE12match_prefixEv[_ZN5boost16re_detail_10650112perl_matcherIN9__gnu_cxx17__normal_iteratorIPKcSsEESaINS_9sub_matchIS6_EEENS_12regex_traitsIcNS_16cpp_regex_traitsIcEEEEE12match_prefixEv]+0x16c): undefined reference toboost::match_results<__gnu_cxx::__normal_iterator<char const*, std::string>, std::allocator<boost::sub_match<__gnu_cxx::__normal_iterator<char const*, std::string> > > >::maybe_assign(boost::match_results<__gnu_cxx::__normal_iterator<char const*, std::string>, std::allocator<boost::sub_match<__gnu_cxx::__normal_iterator<char const*, std::string> > > > const&)'
../core/librstudio-core.a(StringUtils.cpp.o): In function boost::re_detail_106501::perl_matcher<__gnu_cxx::__normal_iterator<char const*, std::string>, std::allocator<boost::sub_match<__gnu_cxx::__normal_iterator<char const*, std::string> > >, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::match_match()': StringUtils.cpp:(.text._ZN5boost16re_detail_10650112perl_matcherIN9__gnu_cxx17__normal_iteratorIPKcSsEESaINS_9sub_matchIS6_EEENS_12regex_traitsIcNS_16cpp_regex_traitsIcEEEEE11match_matchEv[_ZN5boost16re_detail_10650112perl_matcherIN9__gnu_cxx17__normal_iteratorIPKcSsEESaINS_9sub_matchIS6_EEENS_12regex_traitsIcNS_16cpp_regex_traitsIcEEEEE11match_matchEv]+0x34c): undefined reference toboost::match_results<__gnu_cxx::__normal_iterator<char const*, std::string>, std::allocator<boost::sub_match<__gnu_cxx::__normal_iterator<char const*, std::string> > > >::maybe_assign(boost::match_results<__gnu_cxx::__normal_iterator<char const*, std::string>, std::allocator<boost::sub_match<__gnu_cxx::__normal_iterator<char const*, std::string> > > > const&)'
/usr/local/lib/libboost_iostreams.so: undefined reference to std::ios_base::failure[abi:cxx11]::what() const@GLIBCXX_3.4.21' /usr/local/lib/libboost_iostreams.so: undefined reference tostd::iostream_category()@GLIBCXX_3.4.21'
/usr/local/lib/libboost_program_options.so: undefined reference to std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_M_mutate(unsigned long, unsigned long, wchar_t const*, unsigned long)@GLIBCXX_3.4.21' /usr/local/lib/libboost_program_options.so: undefined reference toVTT for std::__cxx11::basic_stringstream<char, std::char_traits, std::allocator >@GLIBCXX_3.4.21'
/usr/local/lib/libboost_filesystem.so: undefined reference to std::__throw_out_of_range_fmt(char const*, ...)@GLIBCXX_3.4.20' /usr/local/lib/libboost_filesystem.so: undefined reference tostd::__cxx11::basic_string<char, std::char_traits, std::allocator >::find_first_not_of(char const*, unsigned long, unsigned long) const@GLIBCXX_3.4.21'
/usr/local/lib/libboost_iostreams.so: undefined reference to std::ios_base::failure[abi:cxx11]::~failure()@GLIBCXX_3.4.21' /usr/local/lib/libboost_program_options.so: undefined reference tostd::logic_error::logic_error(char const*)@GLIBCXX_3.4.21'
/usr/local/lib/libboost_iostreams.so: undefined reference to std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_M_assign(std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&)@GLIBCXX_3.4.21' /usr/local/lib/libboost_iostreams.so: undefined reference tostd::ios_base::failure[abi:cxx11]::failure(char const*, std::error_code const&)@GLIBCXX_3.4.21'
/usr/local/lib/libboost_date_time.so: undefined reference to std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_M_create(unsigned long&, unsigned long)@GLIBCXX_3.4.21' /usr/local/lib/libboost_filesystem.so: undefined reference tostd::__cxx11::basic_string<char, std::char_traits, std::allocator >::~basic_string()@GLIBCXX_3.4.21'
/usr/local/lib/libboost_chrono.so: undefined reference to typeinfo for std::_V2::error_category@GLIBCXX_3.4.21' /usr/local/lib/libboost_filesystem.so: undefined reference tostd::__cxx11::basic_string<char, std::char_traits, std::allocator >::_M_erase(unsigned long, unsigned long)@GLIBCXX_3.4.21'
/usr/local/lib/libboost_regex.so: undefined reference to std::__cxx11::collate<char> const& std::use_facet<std::__cxx11::collate<char> >(std::locale const&)@GLIBCXX_3.4.21' /usr/local/lib/libboost_regex.so: undefined reference tostd::__cxx11::basic_stringstream<char, std::char_traits, std::allocator >::basic_stringstream(std::_Ios_Openmode)@GLIBCXX_3.4.21'
/usr/local/lib/libboost_regex.so: undefined reference to std::__cxx11::numpunct<wchar_t> const& std::use_facet<std::__cxx11::numpunct<wchar_t> >(std::locale const&)@GLIBCXX_3.4.21' /usr/local/lib/libboost_program_options.so: undefined reference tostd::__cxx11::basic_string<char, std::char_traits, std::allocator >::find_last_not_of(char const*, unsigned long, unsigned long) const@GLIBCXX_3.4.21'
/usr/local/lib/libboost_filesystem.so: undefined reference to std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_replace_aux(unsigned long, unsigned long, unsigned long, char)@GLIBCXX_3.4.21' /usr/local/lib/libboost_date_time.so: undefined reference tostd::__cxx11::basic_string<char, std::char_traits, std::allocator >::_M_assign(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)@GLIBCXX_3.4.21'
/usr/local/lib/libboost_iostreams.so: undefined reference to typeinfo for std::ios_base::failure[abi:cxx11]@GLIBCXX_3.4.21' /usr/local/lib/libboost_regex.so: undefined reference tostd::__cxx11::messages<wchar_t> const& std::use_facet<std::__cxx11::messages<wchar_t> >(std::locale const&)@GLIBCXX_3.4.21'
/usr/local/lib/libboost_chrono.so: undefined reference to std::runtime_error::runtime_error(std::runtime_error const&)@GLIBCXX_3.4.21' /usr/local/lib/libboost_program_options.so: undefined reference tostd::__cxx11::basic_stringstream<char, std::char_traits, std::allocator >::~basic_stringstream()@GLIBCXX_3.4.21'
/usr/local/lib/libboost_program_options.so: undefined reference to std::basic_istream<wchar_t, std::char_traits<wchar_t> >& std::getline<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >(std::basic_istream<wchar_t, std::char_traits<wchar_t> >&, std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >&, wchar_t)@GLIBCXX_3.4.21' /usr/local/lib/libboost_date_time.so: undefined reference tostd::__cxx11::basic_string<char, std::char_traits, std::allocator >::compare(char const*) const@GLIBCXX_3.4.21'
/usr/local/lib/libboost_regex.so: undefined reference to std::runtime_error::runtime_error(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)@GLIBCXX_3.4.21' /usr/local/lib/libboost_chrono.so: undefined reference tostd::_V2::error_category::~error_category()@GLIBCXX_3.4.21'
/usr/local/lib/libboost_iostreams.so: undefined reference to std::ios_base::failure[abi:cxx11]::failure(char const*, std::error_code const&)@GLIBCXX_3.4.21' /usr/local/lib/libboost_chrono.so: undefined reference tostd::_V2::error_category::_M_messageabi:cxx11 const@GLIBCXX_3.4.21'
/usr/local/lib/libboost_thread.so: undefined reference to vtable for std::__cxx11::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >@GLIBCXX_3.4.21' /usr/local/lib/libboost_chrono.so: undefined reference tostd::__cxx11::basic_string<char, std::char_traits, std::allocator >::_M_append(char const*, unsigned long)@GLIBCXX_3.4.21'
/usr/local/lib/libboost_iostreams.so: undefined reference to std::ios_base::failure[abi:cxx11]::failure(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)@GLIBCXX_3.4.21' /usr/local/lib/libboost_chrono.so: undefined reference tostd::_V2::generic_category()@GLIBCXX_3.4.21'
/usr/local/lib/libboost_filesystem.so: undefined reference to std::runtime_error::runtime_error(char const*)@GLIBCXX_3.4.21' /usr/local/lib/libboost_filesystem.so: undefined reference tostd::__cxx11::basic_string<char, std::char_traits, std::allocator >::rfind(char, unsigned long) const@GLIBCXX_3.4.21'
/usr/local/lib/libboost_regex.so: undefined reference to std::__cxx11::numpunct<char> const& std::use_facet<std::__cxx11::numpunct<char> >(std::locale const&)@GLIBCXX_3.4.21' /usr/local/lib/libboost_regex.so: undefined reference tostd::__cxx11::basic_string<char, std::char_traits, std::allocator >::_M_construct(unsigned long, char)@GLIBCXX_3.4.21'
/usr/local/lib/libboost_regex.so: undefined reference to std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_M_replace_aux(unsigned long, unsigned long, unsigned long, wchar_t)@GLIBCXX_3.4.21' /usr/local/lib/libboost_filesystem.so: undefined reference to__cxa_throw_bad_array_new_length@CXXABI_1.3.8'
/usr/local/lib/libboost_date_time.so: undefined reference to std::logic_error::logic_error(std::logic_error const&)@GLIBCXX_3.4.21' /usr/local/lib/libboost_regex.so: undefined reference tostd::invalid_argument::invalid_argument(char const*)@GLIBCXX_3.4.21'
/usr/local/lib/libboost_date_time.so: undefined reference to std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_M_replace(unsigned long, unsigned long, wchar_t const*, unsigned long)@GLIBCXX_3.4.21' /usr/local/lib/libboost_regex.so: undefined reference tostd::__cxx11::collate<wchar_t> const& std::use_facet<std::__cxx11::collate<wchar_t> >(std::locale const&)@GLIBCXX_3.4.21'
/usr/local/lib/libboost_regex.so: undefined reference to std::runtime_error::runtime_error(char const*)@GLIBCXX_3.4.21' /usr/local/lib/libboost_date_time.so: undefined reference tostd::out_of_range::out_of_range(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)@GLIBCXX_3.4.21'
/usr/local/lib/libboost_iostreams.so: undefined reference to std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::reserve(unsigned long)@GLIBCXX_3.4.21' /usr/local/lib/libboost_filesystem.so: undefined reference tostd::runtime_error::runtime_error(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)@GLIBCXX_3.4.21'
/usr/local/lib/libboost_regex.so: undefined reference to std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_M_erase(unsigned long, unsigned long)@GLIBCXX_3.4.21' /usr/local/lib/libboost_program_options.so: undefined reference tovtable for std::__cxx11::basic_stringstream<char, std::char_traits, std::allocator >@GLIBCXX_3.4.21'
/usr/local/lib/libboost_program_options.so: undefined reference to std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::resize(unsigned long, char)@GLIBCXX_3.4.21' /usr/local/lib/libboost_regex.so: undefined reference tostd::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::reserve(unsigned long)@GLIBCXX_3.4.21'
/usr/local/lib/libboost_filesystem.so: undefined reference to std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::find(char, unsigned long) const@GLIBCXX_3.4.21' /usr/local/lib/libboost_regex.so: undefined reference tobool std::has_facet<std::__cxx11::messages<wchar_t> >(std::locale const&)@GLIBCXX_3.4.21'
/usr/local/lib/libboost_regex.so: undefined reference to std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::_M_construct(unsigned long, wchar_t)@GLIBCXX_3.4.21' /usr/local/lib/libboost_filesystem.so: undefined reference tostd::__cxx11::basic_string<char, std::char_traits, std::allocator >::find_last_of(char const*, unsigned long, unsigned long) const@GLIBCXX_3.4.21'
/usr/local/lib/libboost_filesystem.so: undefined reference to std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_mutate(unsigned long, unsigned long, char const*, unsigned long)@GLIBCXX_3.4.21' /usr/local/lib/libboost_thread.so: undefined reference toVTT for std::__cxx11::basic_ostringstream<char, std::char_traits, std::allocator >@GLIBCXX_3.4.21'
/usr/local/lib/libboost_program_options.so: undefined reference to std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::compare(wchar_t const*) const@GLIBCXX_3.4.21' /usr/local/lib/libboost_regex.so: undefined reference tobool std::has_facet<std::__cxx11::messages >(std::locale const&)@GLIBCXX_3.4.21'
/usr/local/lib/libboost_regex.so: undefined reference to std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::operator=(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&&)@GLIBCXX_3.4.21' /usr/local/lib/libboost_iostreams.so: undefined reference tostd::ios_base::failure[abi:cxx11]::~failure()@GLIBCXX_3.4.21'
/usr/local/lib/libboost_chrono.so: undefined reference to std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_replace(unsigned long, unsigned long, char const*, unsigned long)@GLIBCXX_3.4.21' /usr/local/lib/libboost_regex.so: undefined reference tostd::__cxx11::messages const& std::use_facet<std::__cxx11::messages >(std::locale const&)@GLIBCXX_3.4.21'
/usr/local/lib/libboost_program_options.so: undefined reference to std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::compare(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const@GLIBCXX_3.4.21' /usr/local/lib/libboost_regex.so: undefined reference tostd::out_of_range::out_of_range(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)@GLIBCXX_3.4.21'
/usr/local/lib/libboost_regex.so: undefined reference to std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::compare(std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&) const@GLIBCXX_3.4.21' /usr/local/lib/libboost_regex.so: undefined reference tostd::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::operator=(std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >&&)@GLIBCXX_3.4.21'
/usr/local/lib/libboost_chrono.so: undefined reference to std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_create(unsigned long&, unsigned long)@GLIBCXX_3.4.21' /usr/local/lib/libboost_filesystem.so: undefined reference tostd::__cxx11::basic_string<char, std::char_traits, std::allocator >::find_first_of(char const*, unsigned long, unsigned long) const@GLIBCXX_3.4.21'
/usr/local/lib/libboost_thread.so: undefined reference to std::__cxx11::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >::~basic_ostringstream()@GLIBCXX_3.4.21' /usr/local/lib/libboost_iostreams.so: undefined reference tovtable for std::ios_base::failure[abi:cxx11]@GLIBCXX_3.4.21'
/usr/local/lib/libboost_program_options.so: undefined reference to std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::find(char const*, unsigned long, unsigned long) const@GLIBCXX_3.4.21' /usr/local/lib/libboost_program_options.so: undefined reference tostd::logic_error::logic_error(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&)@GLIBCXX_3.4.21'
/usr/local/lib/libboost_program_options.so: undefined reference to std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::~basic_string()@GLIBCXX_3.4.21' /usr/local/lib/libboost_regex.so: undefined reference tostd::overflow_error::overflow_error(char const*)@GLIBCXX_3.4.21'
/usr/local/lib/libboost_chrono.so: undefined reference to operator delete(void*, unsigned long)@CXXABI_1.3.9' /usr/local/lib/libboost_program_options.so: undefined reference tostd::basic_istream<char, std::char_traits >& std::getline<char, std::char_traits, std::allocator >(std::basic_istream<char, std::char_traits >&, std::__cxx11::basic_string<char, std::char_traits, std::allocator >&, char)@GLIBCXX_3.4.21'
/usr/local/lib/libboost_thread.so: undefined reference to std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::swap(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&)@GLIBCXX_3.4.21' /usr/local/lib/libboost_program_options.so: undefined reference tovtable for std::__cxx11::basic_stringbuf<char, std::char_traits, std::allocator >@GLIBCXX_3.4.21'
/usr/local/lib/libboost_regex.so: undefined reference to `std::__cxx11::basic_stringbuf<char, std::char_traits, std::allocator >::str() const@GLIBCXX_3.4.21'
collect2: error: ld returned 1 exit status
make[2]: *** [src/cpp/diagnostics/diagnostics] Error 1
make[1]: *** [src/cpp/diagnostics/CMakeFiles/diagnostics.dir/all] Error 2
make: *** [all] Error 2


#2

What version of Redhat are you using? Are you hoping to use RStudio Desktop or RStudio Server?

It'd probably be much easier to unpack the RPM than to try to build yourself, and in some cases we have portable binaries in a .tar.gz you can use instead.


#3

I am using Red Hat 6.9 and was trying to install the desktop version.

I don't have root privilege hence was trying to install RStudio locally. I could be wrong but I don't think you can upack rpm without root. Can you direct me the portable binary you were talking about?


#4

You can absolutely unpack an RPM without root. Here's how:

We also have a tarball (installer-free) version of RStudio Desktop that you can just unzip into your home directory. See Zip/Tarballs on our installer page. That's what I'd recommend in your case.

https://www.rstudio.com/products/rstudio/download/


#5

Hi Jonathan,

I was able to unzip the tarball version of Rstudio Desktop. However, once I am in the rstudio console, I cannot type anything. Have you seen the problem before?