I don't know for sure, but I suspect it's a problem with your directory path.
You're installing in a directory that includes '(' and ')' and spaces - never
easy on UNIX utilities.
I'd put the source and build in a "more standard" directory like
/Users/macbook/Code (e.g., ~/Code) and I suspect your problem will disappear. I
develop and install locally on Mac, and the GitHub code is tested against Mac
on a continual basis.
-Geoff
(BTW, I think compiling in a Dropbox folder is probably a bad idea, since you'd
be sync'ing object files from one source to any other Dropbox shares.)
---
Prof. Geoffrey Hutchison
Department of Chemistry
University of Pittsburgh
tel: (412) 648-0492
email: geo...@pitt.edu
twitter: @ghutchis
web: https://hutchison.chem.pitt.edu/
> On May 7, 2018, at 5:16 PM, Tang, Dai <dai.t...@chbe.gatech.edu> wrote:
>
> Hi,
>
> I'm trying to install Open-babel locally without root access on Mac. However,
> it fails and shows:
> [ 87%] Building CXX object test/CMakeFiles/roundtrip.dir/roundtrip.o
> /bin/sh: -c: line 0: syntax error near unexpected token `('
> /bin/sh: -c: line 0: `cd "/Users/macbook/Dropbox
> (GaTech)/Research/Postdoc/Simulation/Open-babel/ob-build/test" &&
> /Library/Developer/CommandLineTools/usr/bin/c++ -DHAVE_EIGEN -DHAVE_EIGEN3
> -DHAVE_LIBZ -DHAVE_SHARED_POINTER -DUSING_DYNAMIC_LIBS
> -I"/Users/macbook/Dropbox
> (GaTech)/Research/Postdoc/Simulation/Open-babel/ob-build/include"
> -I"/Users/macbook/Dropbox
> (GaTech)/Research/Postdoc/Simulation/Open-babel/ob-src/data"
> -I"/Users/macbook/Dropbox
> (GaTech)/Research/Postdoc/Simulation/Open-babel/ob-src/include"
> -I/usr/local/include/eigen3 -I"/Users/macbook/Dropbox
> (GaTech)/Research/Postdoc/Simulation/Open-babel/ob-src/test" -O2 -g -DNDEBUG
>
> -DOB_MODULE_PATH="\"/Users/macbook/Documents/openbabel-install/lib/openbabel/2.4.1\""
> -DTESTDATADIR="\"/Users/macbook/Dropbox
> (GaTech)/Research/Postdoc/Simulation/Open-babel/ob-src/test/files/\""
> -DFORMATDIR="\"/Users/macbook/Dropbox
> (GaTech)/Research/Postdoc/Simulation/Open-babel/ob-build/lib//\""
> -DTESTDIR=/Users/macbook/Dropbox
> (GaTech)/Research/Postdoc/Simulation/Open-babel/ob-src/test -o
> CMakeFiles/roundtrip.dir/roundtrip.o -c "/Users/macbook/Dropbox
> (GaTech)/Research/Postdoc/Simulation/Open-babel/ob-src/test/roundtrip.cpp"'
> make[2]: *** [test/CMakeFiles/roundtrip.dir/roundtrip.o] Error 2
> make[1]: *** [test/CMakeFiles/roundtrip.dir/all] Error 2
> make: *** [all] Error 2
>
> More details are shown in attached cmake.out and make.out
> I appreciate if you could any suggestions.
>
>
> Thanks,
> Dai
>
>
>
>
>
> <make.out><cmake.out>------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org <http://slashdot.org/>!
> http://sdm.link/slashdot_______________________________________________
> <http://sdm.link/slashdot_______________________________________________>
> OpenBabel-discuss mailing list
> OpenBabel-discuss@lists.sourceforge.net
> <mailto:OpenBabel-discuss@lists.sourceforge.net>
> https://lists.sourceforge.net/lists/listinfo/openbabel-discuss
> <https://lists.sourceforge.net/lists/listinfo/openbabel-discuss>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
OpenBabel-discuss mailing list
OpenBabel-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss