2017-01-20 5 views
0

私はここで助けをすることができます。ppc64leでR Studioをビルド中に 'BOOST_ASIO_OS_DEF'が宣言されていません

Ubuntu 16.04 LTS、ppc64leにR Studioをビルドしようとすると、「 'BOOST_ASIO_OS_DEF'がこのスコープで宣言されていませんでした」というエラーが発生しました。

グーグルではあまり効果がありませんでした。誰かが私を助けることができる、pls?

rstudioのバージョンはgithubの最新のもので、boostのものはaptリポジトリとrstudioのソースコードに含まれているdependencies/common/install-boostスクリプトの両方からインストールされています。

の$ wgetのhttps://github.com/rstudio/rstudio/archive/master.zip

~/files/rstudio-master/build$ cmake .. -DRSTUDIO_TARGET=Server -DCMAKE_BUILD_TYPE=Release ~/files/rstudio-master/build$ make all ...

BUILD SUCCESSFUL Total time: 5 minutes 50 seconds [ 0%] Built target gwt_build [ 1%] Building CXX object src/cpp/core/CMakeFiles/rstudio-core.dir/file_lock/FileLock.cpp.o In file included from /opt/rstudio-tools/boost/boost_1_50_0/include/boost/asio/ip/detail/endpoint.hpp:138:0, from /opt/rstudio-tools/boost/boost_1_50_0/include/boost/asio/ip/basic_endpoint.hpp:20, from /opt/rstudio-tools/boost/boost_1_50_0/include/boost/asio.hpp:53, from /home/u0017496/files/rstudio-master/src/cpp/core/include/core/FileLock.hpp:28, from /home/u0017496/files/rstudio-master/src/cpp/core/file_lock/FileLock.cpp:16: /usr/include/boost/asio/ip/detail/impl/endpoint.ipp: In constructor 'boost::asio::ip::detail::endpoint::endpoint()': /usr/include/boost/asio/ip/detail/impl/endpoint.ipp:38:50: error: 'BOOST_ASIO_OS_DEF' was not declared in this scope
data_.v4.sin_family = BOOST_ASIO_OS_DEF(AF_INET); ^/usr/include/boost/asio/ip/detail/impl/endpoint.ipp: In constructor 'boost::asio::ip::detail::endpoint::endpoint(int, short unsigned int)': /usr/include/boost/asio/ip/detail/impl/endpoint.ipp:47:42: error: 'BOOST_ASIO_OS_DEF' was not declared in this scope if (family == BOOST_ASIO_OS_DEF(AF_INET)) ^

...

答えて

0

私はDebianのストレッチで同じ問題を抱えていました。 別のバージョンに既にboostがインストールされていることが原因です。以前にaptでイ​​ンストールされたブーストバージョンを削除して/ opt/rstudio-toolsを削除した後、install-dependenciesスクリプトを再度実行すると、エラーはなくなりました。

(公平だが、今はboostとopensslに関連するエラーが出るはずです)

関連する問題