onedata / homebrew-onedata

Collection of Homebrew recipes for Onedata
0 stars 0 forks source link

OSX: brew install oneclient fails with BOOST_LIBRARYDIR / BOOST_BOOT error #3

Open cegg opened 5 years ago

cegg commented 5 years ago

Mac OSX High Sierra 10.13.6 I did all the pre-reqs described in this document in macOS section https://github.com/onedata/oneclient :

brew cask install osxfuse
brew tap onedata/onedata
brew install oneclient
defaults write com.apple.finder ShowMountedServersOnDesktop 1

After that, brew install oneclient run ends with this message about BOOST_LIBRARYDIR / BOOST_BOOT (below). Setting BOOST_LIBRARYDIR and BOOST_ROOT to the boost location (/usr/local/opt in my case) has no effect, the same error happens

Your branch is up to date with 'origin/release/18.02.0-beta1'.
HEAD is now at 0edc493 Releasing new version 18.02.0-beta1
==> make release WITH_COVERAGE=OFF WITH_CEPH=OFF WITH_S3=ON WITH_SWIFT=ON WITH_GLUSTERFS=OFF OPENSSL_ROOT_DIR=/usr/local/opt/openssl OPENSSL_LIBRARIES=/usr/local/opt/openssl/lib
Last 15 lines from /Users/ipozdnya/Library/Logs/Homebrew/oneclient/01.make:

  No Boost libraries were found.  You may need to set BOOST_LIBRARYDIR to the
  directory containing Boost libraries or BOOST_ROOT to the location of
  Boost.
Call Stack (most recent call first):
  test/integration/CMakeLists.txt:21 (find_package)

-- Found PythonLibs: /usr/lib/libpython2.7.dylib (found suitable version "2.7.10", minimum required is "2")
-- Found PythonInterp: /usr/local/bin/python2 (found suitable version "2.7.15", minimum required is "2")
-- Found PythonInterp: /usr/local/bin/python2 (found version "2.7.15")
-- Configuring incomplete, errors occurred!
See also "/tmp/oneclient-20190103-1744-48pf1g/release/CMakeFiles/CMakeOutput.log".
See also "/tmp/oneclient-20190103-1744-48pf1g/release/CMakeFiles/CMakeError.log".
make: *** [release/CMakeCache.txt] Error 1

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/onedata/homebrew-onedata/issues

Error: You have MacPorts or Fink installed:
  /opt/local/bin/port

This can cause trouble. You don't have to uninstall them, but you may want to
temporarily move them out of the way, e.g.

  sudo mv /opt/local ~/macports
bkryza commented 5 years ago

@cegg Thanks for the post. We are aware of the issue, the problem is that the homebrew dependencies cannot be pinned to a specific library version, and we haven't updated our codebase to the latest boost and folly libraries. We plan to update the homebrew dependencies with the the final release by the end of the month.

If you would like to test Oneclient on macOS you can for now try it using Docker, e.g.:

docker run --privileged -it ubuntu:xenial bash
apt update
apt -y install curl
curl -sS  http://get.onedata.org/oneclient.sh | bash
oneclient -V

We'll let you know in this issue when the problem is fixed.

cegg commented 5 years ago

Thank you very much, your solution with docker ubuntu container works just fine, I have mounted my storage and copied files successfully.