I'm trying to install
tao4py on OSX. I installed PETSc 3.4.2 and TAO 2.2. I set
tao4py complains that my
PETSC_ARCH is invalid, and discards it. It then proceeds to look for
libtao is found under
$ ls $TAO_DIR/$PETSC_ARCH/lib libtao.a libtao.dylib libtao.dylib.dSYM
PETSC_ARCH has been determined by PETSc itself. So I don't see how it is "invalid".
Here's the log:
$ pip install hg+https://bitbucket.org/dalcinl/tao4py Downloading/unpacking hg+https://bitbucket.org/dalcinl/tao4py Cloning hg https://bitbucket.org/dalcinl/tao4py to /var/folders/5f/2xxztxbx2gb961387014r1fw0000gn/T/pip-OHUegW-build warning: bitbucket.org certificate with fingerprint 24:9c:45:8b:9c:aa:ba:55:4e:01:6d:58:ff:e4:28:7d:2a:14:ae:3b not verified (check hostfingerprints or web.cacerts config setting) Running setup.py egg_info for package from hg+https://bitbucket.org/dalcinl/tao4py invalid PETSC_ARCH: arch-darwin-c-opt (ignored) Requirement already satisfied (use --upgrade to upgrade): petsc4py>=3.3.1 in ./lib/python2.7/site-packages (from tao4py==2.1.1) Requirement already satisfied (use --upgrade to upgrade): Cython>=0.15 in ./lib/python2.7/site-packages (from tao4py==2.1.1) Requirement already satisfied (use --upgrade to upgrade): numpy in /usr/local/lib/python2.7/site-packages (from petsc4py>=3.3.1->tao4py==2.1.1) Installing collected packages: tao4py Running setup.py install for tao4py invalid PETSC_ARCH: arch-darwin-c-opt (ignored)
etc... and then:
ld: warning: directory not found for option '-L/usr/local/Cellar/tao/2.2/lib' ld: warning: directory not found for option '-L/usr/local/Cellar/tao/2.2/lib' ld: library not found for -ltao collect2: ld returned 1 exit status error: command 'mpicc' failed with exit status 1
So why is
tao4py rejecting my
petsc4py doesn't complain about it.