2

I am trying to install ipopt from mac terminal, but I got the following error: terminal

/usr/bin/clang -bundle -undefined dynamic_lookup -arch i386 -arch x86_64 -g build/temp.macosx-10.6-intel-3.6/src/callback.o build/temp.macosx-10.6-intel-3.6/src/pyipoptcoremodule.o -L/usr/local/lib -lipopt -lcoinblas -lcoinmumps -lcoinmetis -lcoinlapack -ldl -lm -o build/lib.macosx-10.6-intel-3.6/pyipopt/pyipoptcore.cpython-36m-darwin.so

ld:
library not found for -lipopt
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: command '/usr/bin/clang' failed with exit status 1

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129

2 Answers2

0

ipopt library is missing. Try

then run pip install ipopt again.

delta
  • 3,778
  • 15
  • 22
  • I got the following errors instead: src/cyipopt.c:239:10: fatal error: 'IpStdCInterface.h' file not found #include "IpStdCInterface.h" – Raindraconis1758 Jul 17 '17 at 09:14
  • @Raindraconis1758 is it during the process of `pip install pyipopt`? What command are you using? – delta Jul 17 '17 at 09:21
  • @Raindraconis1758 try follow the instructions here https://github.com/xuy/pyipopt#install – delta Jul 17 '17 at 09:21
  • i've been trying to follow this link from the beginning but somehow im not getting any progress. I used 'pip3 install ipopt' – Raindraconis1758 Jul 17 '17 at 09:40
  • following github's instruction, I got 'ld: library not found for -lcoinblas' (which I indeed do not have) – Raindraconis1758 Jul 17 '17 at 09:42
  • did u install ipopt from the source? sorry I dont have a osx env. Can't verify the solution. – delta Jul 17 '17 at 09:48
  • https://projects.coin-or.org/BuildTools/wiki/user-compile#CompilingandInstallingthePackage – delta Jul 17 '17 at 09:48
  • installation was unsuccessful, errors always occur when I command 'python setup.py build' – Raindraconis1758 Jul 17 '17 at 09:54
  • It says to change the directory to where pyipopt was installed, but whenever i changed the directory it showed me couldn't find lib, and when I keep the directory as it is, it runs fine all the way up to coinblas – Raindraconis1758 Jul 17 '17 at 09:57
0

i'm not sure if it's too late, but you can try here

git clone https://github.com/coin-or/Ipopt
make
make test
make install

that includes the missing files Ipopt/src/Interfaces/IpIpStdCInterface.h that you mentioned before

kensaii
  • 314
  • 5
  • 16