I follow the installation instructions on http://wiki.tiker.net/PyOpenCL/Installation/Mac . But it falls during
make
The error message is shown below:
fatal error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo: can't figure out the architecture type of: /var/folders/8f/l7p674mx2j130p08plnd9k1r0000gn/T//ccG1RrCB.out
error: command 'gcc-4.2' failed with exit status 1
make: *** [all] Error 1
What I can do to install PyOpenCL successfully?
Have you installed Mako before pyopencl? For some reason that's what works with my macs.
Also, you may not have installed the Xcode Command line tools; try (in the terminal):
xcode-select --install
Related
I've been trying to install Pillow on Mac OS Version: OS X, version 10.9.5.
I have Python 3 installed, along with XCode and all the command line tools.
I have read several articles on how to install Pillow on the Mac, and so far all attempts and history on this subject have not helped.
The issue in the error list below says that I have a missing dylib for architecture x86_64. I cannot figure how to get that dylib architecture installed so the install will work. I want to run Python on the Mac using Pillow.
Do you all know how to install or include the missing architecture to get the installation and build to work?
Thanks for your help.
Error output when installing Pillow:
ld: file not found: /usr/lib/system/**libsystem_coreservices.dylib** for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: command '/usr/bin/gcc' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> Pillow
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
i got this error when i run pip install flask-mysqldb in my project venv:
In file included from MySQLdb/_mysql.c:29:
In file included from /usr/local/Cellar/mysql/8.0.23_1/include/mysql/mysql.h:46:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/types.h:81:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/machine/endian.h:37:2: error: architecture not supported
#error architecture not supported
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
error: command 'clang' failed with exit status 1
I have python 3.8.2
It seems that you have a MacOS. Check which clang are you using, as it seems that it is the source of your error. If it shows you some error when trying to run the clang command directly from your console, try to do a fresh Xcode installation with xcode-select --install. By doing so, maybe you can run now the clang command without errors, and therefore, install the pip library.
Check this post for more details.
Just trying to run a
pip install CrossMap
on OSX 10.11.6 with a brew installed python (version 2.7.12) and pip (version 9.0.1) and running into this error:
htslib/hts_os.c:30:10: fatal error: 'os/rand.c' file not found
#include "os/rand.c"
^
1 error generated.
error: command 'clang' failed with exit status 1
I have looked everywhere for information on this error and it has come up empty. Where does this dependency come from and how do I install it?
Thanks!
CrossMap depends on pysam which is a wrapper for sam tools. You need to install htslib before compiling pysam.
I´m was trying to install locustio following this steps (http://docs.locust.io/en/latest/installation.html), in my terminal:
pip install locustio
I get this:
ld: library not found for -lgcc_s.10.5
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: command 'gcc' failed with exit status 1
I also have tried with easy_install:
sudo easy_install locustio
I get the same error. After that, yesterday I was looking for information about this, and some people says that you may to need install gcc.
brew install gcc
I get this message:
Warning: gcc-5.3.0 already installed
After a couple of hours looking for information, I read about Anaconda, I install Anaconda and I create my new environment... and in my new environment I get this again:
ld: library not found for -lgcc_s.10.5
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: command 'gcc' failed with exit status 1
I´m getting crazy. I would like to work in environments but I need some of help to do this because I lost a lot time trying to resolve this problem to use locustio.
I´m using Mac Yosemite 10.10.3
My Anaconda version is 3.19.0
My Python version is 2.7.11
My gcc is gcc-5.3.0
Someone can help me?
I just wanna launch locustio in my pc =(
When I try installing mysql-python using below command,
macbook-user$ sudo pip install MYSQL-python
I get these messages:
/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/pyconfig.h:891:1: warning: this is the location of the previous definition
/usr/bin/lipo: /tmp/_mysql-LtlmLe.o and /tmp/_mysql-thwkfu.o have the same architectures (i386) and can't be in the same fat output file
clang: error: lipo command failed with exit code 1 (use -v to see invocation)
error: command 'clang' failed with exit status 1
Does anyone know how to solve this problem? Help me please!
At first glance it looks like damaged pip package. Have you tried easy_install instead with the same package?