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
ipopt library is missing. Try
brew install homebrew/science/ipopt
or https://projects.coin-or.org/Ipopt/wiki/Ipopt_on_Mac_OS_X
then run pip install ipopt again.
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
Related
This is the error I get when running the installation scripts. I cannot find any information online regarding -lunitex.
/usr/bin/clang++ -bundle -undefined dynamic_lookup -L/opt/local/lib -Wl,-headerpad_max_install_names -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk build/temp.macosx-10.15-x86_64-3.5/extensions/_unitex.o -L/usr/local/lib -lunitex -o build/lib.macosx-10.15-x86_64-3.5/_unitex.cpython-35m-darwin.so
ld: library not found for -lunitex
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: command '/usr/bin/clang++' failed with exit status 1```
I'm trying to install the mysqlclient module in a virtual environment on RHEL with Percona clustering running a Mysql db.
Each time it exits with this error
gcc -pthread -shared -Wl,-z,relro -g
build/temp.linux-x86_64-3.6/MySQLdb/_mysql.o -L/usr/lib64 -L/usr/lib64
-lmysqlclient -lpthread -lz -lm -lrt -lssl -lcrypto -ldl -lpython3.6m -o build/lib.linux-x86_64-3.6/MySQLdb/_mysql.cpython-36m-x86_64-linux-gnu.so
/bin/ld: cannot find -lmysqlclient collect2: error: ld returned 1 exit
status error: command 'gcc' failed with exit status 1
I believe I have the library installed here:
$ ls /usr/lib64/mysql/
libmysqlclient.a
libmysqlclient_r.so.18.1.0
libmysqlclient.so.18.1.0
libperconaserverclient.a
libmysqlclient_r.a
libmysqlclient.so.18
libmysqlservices.a
libperconaserverclient_r.a
So I'm not sure what the problem is
I had to explicitly pass the library path to gcc like this
sudo pip3 install mysqlclient --global-option=build_ext --global-option="-L/usr/lib64/mysql/"
I've been looking for an answer to this issue but I couldn't find it, so here it is.
I'm trying to install tesserocr into MacOS X Mojave (Python 3.6) using:
$ pip install tesserocr
Then I get the following error:
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall
-Wstrict-prototypes -I/anaconda3/include -arch x86_64 -I/anaconda3/include -arch x86_64
-I/usr/local/Cellar/tesseract/4.0.0/include -I/usr/local/Cellar/leptonica/1.77.0/include
-I/anaconda3/include/python3.6m -c tesserocr.cpp -o build/temp.macosx-10.7-
x86_64-3.6/tesserocr.o -std=c++11 -DUSE_STD_NAMESPACE
warning: include path for stdlibc++ headers not found; pass '-std=libc++' on the command line
to use the libc++ standard library instead [-Wstdlibcxx-not-found]
tesserocr.cpp:580:10: fatal error: 'utility' file not found
#include <utility>
1 warning and 1 error generated.
error: command 'gcc' failed with exit status 1
Failed building wheel for tesserocr
P.s. I have installed the latest version of Xcode and Xcode CLI.
Thanks.
I am trying to instal Kivy by following the instructions on this page.
I already installed Cython and Pygame, yet when I try to install Kivy from the command line the following error appears before the code stops executing:
/usr/bin/clang -bundle -undefined dynamic_lookup -g build/temp.macosx-10.6-intel-
2.7/kivy/graphics/texture.o -o
/Applications/Kivy.app/Contents/Resources/kivy/kivy/graphics/texture.so -
F/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/
Developer/SDKs/MacOSX10.9.sdk/System/Library/Frameworks -framework OpenGL
-arch x86_64 -lm
Any idea what might be causing this? I can post more details of the error if necessary. Thanks.
I am attempting to install pycrypto (version 2.3) on OS X via pip. I am getting a "Broken pipe" error when the compiler attempts to compile MD2.c. I get a very similar error when using easy_install.
Here is the error that I am getting:
bash-3.2$
bash-3.2$ sudo pip install pycrypto
Password:
Downloading/unpacking pycrypto
Running setup.py egg_info for package pycrypto
Installing collected packages: pycrypto
Running setup.py install for pycrypto
warning: GMP library not found; Not building Crypto.PublicKey._fastmath.
building 'Crypto.Hash.MD2' extension
gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -fwrapv -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch ppc -arch x86_64 -pipe -std=c99 -O3 -fomit-frame-pointer -Isrc/ -I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c src/MD2.c -o build/temp.macosx-10.6-universal-2.6/src/MD2.o
/usr/libexec/gcc/powerpc-apple-darwin10/4.2.1/as: assembler (/usr/bin/../libexec/gcc/darwin/ppc/as or /usr/bin/../local/libexec/gcc/darwin/ppc/as) for architecture ppc not installed
Installed assemblers are:
/usr/bin/../libexec/gcc/darwin/x86_64/as for architecture x86_64
/usr/bin/../libexec/gcc/darwin/i386/as for architecture i386
src/MD2.c:134: fatal error: error writing to -: Broken pipe
compilation terminated.
lipo: can't open input file: /var/tmp//cc47qHNI.out (No such file or directory)
error: command 'gcc-4.2' failed with exit status 1
Complete output from command /usr/bin/python -c "import setuptools;__file__='/Users/damusin/tmp/pycrypto/pycrypto-2.3/build/pycrypto/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /tmp/pip-W6xQ61-record/install-record.txt:
running install
running build
running build_py
running build_ext
warning: GMP library not found; Not building Crypto.PublicKey._fastmath.
building 'Crypto.Hash.MD2' extension
gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -fwrapv -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch ppc -arch x86_64 -pipe -std=c99 -O3 -fomit-frame-pointer -Isrc/ -I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c src/MD2.c -o build/temp.macosx-10.6-universal-2.6/src/MD2.o
/usr/libexec/gcc/powerpc-apple-darwin10/4.2.1/as: assembler (/usr/bin/../libexec/gcc/darwin/ppc/as or /usr/bin/../local/libexec/gcc/darwin/ppc/as) for architecture ppc not installed
Installed assemblers are:
/usr/bin/../libexec/gcc/darwin/x86_64/as for architecture x86_64
/usr/bin/../libexec/gcc/darwin/i386/as for architecture i386
src/MD2.c:134: fatal error: error writing to -: Broken pipe
compilation terminated.
lipo: can't open input file: /var/tmp//cc47qHNI.out (No such file or directory)
error: command 'gcc-4.2' failed with exit status 1
----------------------------------------
Command /usr/bin/python -c "import setuptools;__file__='/Users/damusin/tmp/pycrypto/pycrypto-2.3/build/pycrypto/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --single-version-externally-managed --record /tmp/pip-W6xQ61-record/install-record.txt failed with error code 1
Storing complete log in /Users/admin/.pip/pip.log
bash-3.2$
bash-3.2$
I attempted to install this package using mac ports with the command "sudo port install py26-crypto", and looks to install smoothly but then it tells me that the pycrypto package is missing when running the command "fab" (Fabric).
I attempted using the "ARCHFLAGS" command recommended in answer by YH Wong here but no luck:
https://superuser.com/questions/259278/python-2-6-1-pycrypto-2-3-pypi-package-broken-pipe-during-build
I am using Mac OS X 10.6.7 with python 2.6.6 and XCode is installed.
If you have installed Xcode 4, try setting ARCHFLAGS before calling pip or easy_install:
sudo bash
export ARCHFLAGS='-arch i386 -arch x86_64'
pip ...
The problem is that Xcode 4 has removed support for -arch ppc but the system Python 2.6 on Mac OS X 10.6 expects to build universal C extension modules with all three architectures. And if you define the environment variable prior to the sudo command, it will likely not be exported through to the sudo environment.
Xcode 5.1
ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future pip2.7 install pycrypto