Home > Clang Error > Clang Error No Such File Or Directory 'readline/libreadline.a'

Clang Error No Such File Or Directory 'readline/libreadline.a'

i386-apple-darwin13.1.0 checking host system type... Now I'm getting this error: cc -bundle -undefined dynamic_lookup -arch x86_64 -arch i386 -Wl,-F. -Qunused-arguments -Qunused-arguments build/temp.macosx-10.9-intel-2.7/Modules/2.x/readline.o readline/libreadline.a readline/libhistory.a -lncurses -o build/lib.macosx-10.9-intel-2.7/gnureadline.so

clang: error: no such file or johansen commented Feb 21, 2014 Upgrading virtualenv and creating a new virtual environment allowed me to pip install gnureadline. The latest binary (6.2.5) doesn't appear to solve the problem. Check This Out

However, I have libreadline.so.5 installed at /gs/home/jianq/lib which is among the linking path (-L/gs/home/jianq/lib). It is not a develoment machine, no xcode is installed). The installation fails when gnureadline is being installed. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/opt/local/libexec/gcc/x86_64-apple-darwin11/4.8.2/lto-wrapper gcc: error: unrecognized command line option '-arch_only' gcc: error: unrecognized command line option '-arch_only' Target: x86_64-apple-darwin11 Configured with: /opt/local/var/macports/build/_opt_mports_dports_lang_gcc48/gcc48/work/gcc-4.8.2/configure --prefix=/opt/local --build=x86_64-apple-darwin11 --enable-languages=c,c++,objc,obj-c++,lto,fortran,java --libdir=/opt/local/lib/gcc48 --includedir=/opt/local/include/gcc48 --infodir=/opt/local/share/info --mandir=/opt/local/share/man --datarootdir=/opt/local/share/gcc-4.8 --with-local-prefix=/opt/local --with-system-zlib

Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. johansen commented Feb 21, 2014 Yes, I did install python3.3 via MacPorts. Thanks! –user11170 Jun 7 '12 at 5:23 easy_install of that old version didn't work for me...

no checking for cl.exe... yes checking for C compiler default output file name... more hot questions question feed lang-py about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology Life / Arts Culture / Recreation same error. :\ Any other tips? –robbyt Oct 13 '12 at 21:08 up vote3down vote This bug should be fixed in readline version 6.2.4 released last week.

I had not used this particular laptop in a while and had not used Xcode to install the command line tools. Now configure fails again with gcc: error: unrecognized command line option '-syslibroot,/Developer/SDKs/MacOSX10.5.sdk' When I remove the complete "if darwin" block from build.sh then "configure" runs through, but "make" fails: MACOSX_DEPLOYMENT_TARGET=10.3 gcc configure: error: in `/Users/joshuahansen/Projects/MotherBrain/venv_py33/build/gnureadline/rl/readline-lib': configure: error: C compiler cannot create executables See `config.log' for more details. ============ Building the readline library ============ ============ Building the readline extension module ============ running install Previous attempts looked at which -arch flags are accepted by gcc (commit f5b6fe7) and which assemblers are installed in /usr/libexec (commit 4f74609).

Closing the issue, since these do not seem related to pip. See: https://github.com/ludwigschwardt/python-readline/pull/19 Oct 13 '12 at 21:25robbyt up vote0down vote Make sure you have gcc installed. which gcc should return /usr/bin/gcc I was getting the same johansen commented Feb 19, 2014 I get this issue in OS X 10.9, and yes, I use MacPorts: pip install gnureadline ... The LDFLAGS variable is also unnecessary.

doing something like "sudo port install gcc47 +universal"? try here I'm also interested to see the output of "python-config --cflags" when run inside your virtualenv. See `config.log' for more details ============ Building the readline library ============ ============ Building the readline extension module ============ running install running build running build_py running egg_info writing top-level names to gnureadline.egg-info/top_level.txt i386-apple-darwin13.0.0 Beginning configuration for readline-6.2 for i386-apple-darwin13.0.0 checking whether make sets $(MAKE)...

no checking for cc... http://buzzmeup.net/clang-error/clang-error-no-such-file-or-directory-libgcc-a.html The use of SDK directories to detect the OS is just as bad (see issues #14, sysroot anyway, so drop the whole business (only support 10.6+ from now on). I have been struggling with this for a long time and sincerely hope that someone can help me with this. Has a Poké Ball ever captured anything other than a Pokémon?

This is free software; see the source for copying conditions. To emailaddress: To name: From name: Extra information in the email body (optional): Email: I am sending you the codedump of Error installing gnureadline via pip that you can see here: Phys. (Germany) >> >> Centre of Excellence for Invasion Biology >> Stellenbosch University >> South Africa >> >> Tel : +33 - (0)9 53 10 27 44 >> Cell: +33 - this contact form building 'gnureadline' extension creating build/temp.macosx-10.9-x86_64-3.3 creating build/temp.macosx-10.9-x86_64-3.3/Modules creating build/temp.macosx-10.9-x86_64-3.3/Modules/3.x /usr/bin/clang -Wno-unused-result -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -pipe -Os -DHAVE_RL_CALLBACK -DHAVE_RL_CATCH_SIGNAL -DHAVE_RL_COMPLETION_APPEND_CHARACTER -DHAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK -DHAVE_RL_COMPLETION_MATCHES -DHAVE_RL_COMPLETION_SUPPRESS_APPEND -DHAVE_RL_PRE_INPUT_HOOK -I. -I/opt/local/Library/Frameworks/Python.framework/Versions/3.3/include/python3.3m -c

We recommend upgrading to the latest Safari, Google Chrome, or Firefox. Multiple TXT fields for same subdomain Can a wide body airliner land safely with a full fuel tank? Personal Open source Business Explore Sign up Sign in Pricing Blog Support Search GitHub This repository Watch 185 Star 3,227 Fork 1,177 pypa/pip Code Issues 644 Pull requests 50 Projects

Post your question and get tips & solutions from a community of 418,854 IT Pros & Developers.

This will ensure that the problem is permanently solved for everyone. The installation fails when gnureadline is being installed. The result is that build.sh tries to make ppc and ppc64 builds too. ./configure fails, libreadline.a is not built, resulting in the error message. In this case pip should be picking up the appropriate binary wheel from the PyPI package repository if you have a new enough pip.

Did you install gcc47 as a universal compiler, e.g. configure: error: in `/Users/joshuahansen/Projects/MotherBrain/venv_py33/build/gnureadline/rl/readline-lib': configure: error: C compiler cannot create executables See `config.log' for more details. ============ Building the readline library ============ ============ Building the readline extension module ============ running install Move center of radial anisotropic to center of object Too many reports because of too convenient report button Animate finding the middle Mountainering with 6 y.o. navigate here yes checking for gcc...

I'll investigate further... -Stefan python-gnureadline owner ludwigschwardt commented Dec 14, 2013 Hi Stefan, I'm not a big fan of MacPorts, precisely for the kind of build issues you are getting... I didn't have to reinstall ipython for it to work properly. –Josh Hansen Jan 9 '14 at 22:17 add a comment| up vote 0 down vote Make sure you have gcc If not, give >>> more details. >> >> Also: did you use the official R installer or installed it using homebrew? >> >> The path looks very much like homebrew. PPCG Jeopardy: Cops Huffman compressor in Java Is Dark Matter called "Matter" only because of gravity?

sudo apt-get install libncurses5-dev libffi-dev share|improve this answer answered Jun 29 '15 at 3:00 endline 191312 add a comment| Your Answer draft saved draft discarded Sign up or log in COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/opt/local/libexec/gcc/x86_64-apple-darwin11/4.8.2/lto-wrapper gcc: error: unrecognized command line option '-arch_only' gcc: error: unrecognized command line option '-arch_only' Target: x86_64-apple-darwin11 Configured with: /opt/local/var/macports/build/*opt*mports_dports_lang_gcc48/gcc48/work/gcc-4.8.2/configure --prefix=/opt/local --build=x86_64-apple-darwin11 --enable-languages=c,c++,objc,obj-c++,lto,fortran,java --libdir=/opt/local/lib/gcc48 --includedir=/opt/local/include/gcc48 --infodir=/opt/local/share/info --mandir=/opt/local/share/man --datarootdir=/opt/local/share/gcc-4.8 --with-local-prefix=/opt/local --with-system-zlib current community chat Stack Overflow Meta Stack Overflow your communities Sign up or log in to customize your list. I have already installed readline via homebrew.

configure:2409: $? = 0 configure:2416: gcc -v >&5 Using built-in specs. The 'strict prototypes' C warning does not have to be suppressed anymore as the underlying cause has been fixed in recent versions of the module. The solution to the build problem is to improve the detection of which arch flags to use to build libreadline (or omit them altogether). It is already included within the python readline module.

python-gnureadline owner ludwigschwardt commented Feb 20, 2014 Some more questions... Thank you! This should address issues #28, #22 and maybe even #20. mchangun commented Apr 7, 2014 Here's the full log: Downloading/unpacking gnureadline Running setup.py egg_info for package gnureadline Installing collected packages: gnureadline Running setup.py install for gnureadline x readline-6.2/ x readline-6.2/doc/ x

building 'gnureadline' extension creating build/temp.macosx-10.9-x86_64-3.3 creating build/temp.macosx-10.9-x86_64-3.3/Modules creating build/temp.macosx-10.9-x86_64-3.3/Modules/3.x /usr/bin/clang -Wno-unused-result -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -pipe -Os -DHAVE_RL_CALLBACK -DHAVE_RL_CATCH_SIGNAL -DHAVE_RL_COMPLETION_APPEND_CHARACTER -DHAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK -DHAVE_RL_COMPLETION_MATCHES -DHAVE_RL_COMPLETION_SUPPRESS_APPEND -DHAVE_RL_PRE_INPUT_HOOK -I. -I/opt/local/Library/Frameworks/Python.framework/Versions/3.3/include/python3.3m -c Another reason to use a wheel :-) Glad the wheel route worked for you!