Home > Could Not > Libxml2 Libpython2.7.a: Could Not Read Symbols: Bad Value

Libxml2 Libpython2.7.a: Could Not Read Symbols: Bad Value

Contents

On Linux this would entail setting the ‘LD_LIBRARY_PATH' environment variable to include the directory where the Python shared library is installed. Sort an array of integers into odd, then even What's the male version of "hottie"? On a Solaris system, depending on which compiler is being used and which options, the amount of additional memory used can be 5MB or more. We recommend upgrading to the latest Safari, Google Chrome, or Firefox.

For some reason it thinks that compiler (gcc) is situated in other folder. Why does the `reset` command include a delay? And I'm getting this error: apxs:Error: Command failed with rc=65536 The answer seems to be here, but I think I already have 64 bit Python so I'm not clear on what The next thing you need to do is set the WSGIPythonHome directive in the Apache configuration to be the value of sys.prefix for the Python installation you want to use. http://stackoverflow.com/questions/11332717/error-command-failed-with-rc-65536-python-and-mod-wsgi

Libxml2 Libpython2.7.a: Could Not Read Symbols: Bad Value

See the gist for more details. Skip to content Ignore Learn more Please note that GitHub no longer supports old versions of Firefox. TeXForm handling of derivative higher than two How to deal with an intern's lack of basic skills? It is because the Python installation does not install a shared library for Python and only installs a static library.

If the shared library doesn't appear here next to the static version of the library, ‘libtool' will not be able to find it and will still use the static version of To check, go to the Python ‘config' directory of your Python installation and do a directory listing: $ ls -las 4 drwxr-sr-x 2 root staff 4096 2007-11-29 23:26 . 20 drwxr-sr-x In that case you need to create a symlink in the ‘config' directory to where the shared library is actually installed: $ ln -s ../../libpython2.5.so . But, the system is stuck at 2.4 Is there a way, I can enforce a specific Python binary to be used via mod_wsgi / wsgi scripts?

An example of the error messages you will see if the developer package is not installed are: mod_wsgi.c:113:20: error: Python.h: No such file or directory mod_wsgi.c:114:21: error: compile.h: No such file Usr Local Lib Python2 7 Config Libpython2 7 A Could Not Read Symbols Bad Value Specifically, the directory above the directory containing the ‘python' executable is taken as being the installation prefix. 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 Installation Commands: [django - [email protected]]~/mod_wsgi-3.3>./configure --with-python=/usr/local/python-2.7.1/bin/python checking for apxs2...

The error encountered would be similar to: httpd: Syntax error on line 54 of /etc/httpd/conf/httpd.conf: Cannot \ load /etc/httpd/modules/mod_wsgi.so into server: \ /etc/httpd/modules/mod_wsgi.so: undefined symbol: forkpty This problem can be fixed You might even rename '/opt/python2.7' to '/opt/python2.7.static' while you do it to ensure that it recreates it and that installed version not causing problems. –Graham Dumpleton May 26 '11 at 7:03 Unfortunately it seems that the Anaconda Pythonconfiguration appears to be broken or perhaps dependent on other special environment variables being set. Apex schedulable jobs What happens to a radioactive carbon dioxide molecule when its carbon-14 atom decays?

Usr Local Lib Python2 7 Config Libpython2 7 A Could Not Read Symbols Bad Value

Reload to refresh your session. my site share|improve this answer answered Dec 3 '13 at 13:34 nerak99 342316 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign Libxml2 Libpython2.7.a: Could Not Read Symbols: Bad Value These problems can arise for various reasons, including an incomplete or suboptimal Python installation or presence of multiple Python versions. Relocation R_x86_64_32s Against `_py_notimplementedstruct' Missing Python Header FilesĀ¶ In order to compile mod_wsgi from source code you must have installed the full Python distribution, including header files.

How to make random draws from an unspecified distribution? It is understood that the Python build process may not actually do this, so you may have to do it by hand. current community chat Stack Overflow Meta Stack Overflow your communities Sign up or log in to customize your list. If file is not there does it means that i have to recompile python again. /usr/local/lib/libpython2.7.a: Could Not Read Symbols: Bad Value

The actual error arises in this case because 'libtool' would appear to be unable to generate a dynamically loadable module for the X86 64 bit architecture from a X86 32 bit share|improve this answer edited Jul 19 '13 at 3:07 answered Jul 4 '12 at 23:48 Graham Dumpleton 34.4k55872 ? asked 2 years ago viewed 1351 times active 2 years ago Linked 85 Python executable not finding libpython shared library 5 apxs:Error: Command failed with rc=65536 Related 1mod_wsgi on Snow Leopard asked 4 years ago viewed 6909 times active 3 years ago Linked 5 Problems compiling mod_wsgi in virtualenv 0 pythonbrew with mod_wsgi Related 2471Calling an external command in Python1mod_wsgi on Snow

share|improve this answer edited Aug 20 '13 at 23:41 Jawa 2,15751323 answered Aug 20 '13 at 17:34 talonsensei 212 add a comment| Your Answer draft saved draft discarded Sign up An alternative method which may work is to edit the ‘envvars' file, if it exists and is used, located in the same directory as the Apache ‘httpd' executable, or the Apache Hot Network Questions list of files based on permission Word for unproportional punishment?

For some systems the directory ‘/usr/local/lib' may also be searched, but this may depend on the directory having been explicitly added to the approrpiate system file listing the directories to be

Let me know if it then works. none needed checking for prctl... Apache Maintainer ModeĀ¶ When building mod_wsgi from source code, on UNIX systems there should be minimal if no compiler warnings. Update has removed all of my python and apache modules including mod_wsgi.

Why didn't Dumbledore appoint the real Mad Eye Moody to teach Defense Against Dark Arts? 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 up vote 22 down vote favorite 7 I've updated to OS X Mountain Lion. Not the answer you're looking for?

The specific error message is: [crit] file http_filters.c, line 346, assertion "readbytes > 0" failed [notice] child pid 18551 exit signal Aborted (6) This occurs because the Apache code has an The error in this situation will be similar to: error while loading shared libraries: libpython2.4.so.1.0: \ cannot open shared object file: No such file or directory A number of alternatives exist If 'pythonbrew' doesn't allow you to do that, then tell the pythonbrew people that the way they are building their Python version with shared library support is arguably broken and will invoke-rc.d: initscript apache2, action "reload" failed.

I gave up ensuring that it compiles for older versions many years ago. alignment of single- and multi-line column headers in tabular (latex) Which was the last major war in which horse mounted cavalry actually participated in active fighting? The actual error arises in this case because ‘libtool' would appear to be unable to generate a dynamically loadable module for the X86 64 bit architecture from a X86 32 bit Is the binomial theorem actually more efficient than just distributing Should we kill the features that users are not using frequently, to improve performance?

I have python version 2.6.9, I get these errors: LD_RUN_PATH=/usr/lib64 make /usr/sbin/apxs2 -c -I/usr/include/python2.6 -DNDEBUG -D_FORTIFY_SOURCE=2 -Wc,-g -Wc,-O2 src/server/mod_wsgi.c src/server/wsgi__.c -L/usr/lib64 -L/usr/lib64/python2.6/config -lpython2.6 -lpthread -ldl -lutil -lm /usr/lib64/apr-1/build/libtool --silent --mode=compile gcc That is almost older than mod_wsgi itself. It is likely that this issue would affect any attempt to build Apache modules using apxs and not just mod_wsgi. –Graham Dumpleton Jul 29 '12 at 23:50 Problem I Not the answer you're looking for?

Directories which would generally always be searched are ‘/lib' and ‘/usr/lib'. Browse other questions tagged python mod-wsgi or ask your own question. mod_wsgi.c: In function 'wsgi_set_accept_mutex': mod_wsgi.c:5200: error: 'ap_accept_lock_mech' undeclared (first use in this function) mod_wsgi.c:5200: error: (Each undeclared identifier is reported only once mod_wsgi.c:5200: error: for each function it appears in.) apxs:Error: I am not using pythonbrew however.

This site is not affiliated with or endorsed by Apple Inc. Keeping windshield ice-free without heater Why are there no Imperial KX-series Security Droids in the original trilogy? Ultimate Australian Canal At what point is brevity no longer a virtue? share|improve this answer answered Apr 29 '11 at 13:14 mmmooo 111 It returns this: /usr/local/python-2.7.1/lib/libpython2.7.a: current ar archive –Greg_the_Ant Apr 29 '11 at 13:39 2 my bad, I

to that end, i followed this tutorial: code.google.com/p/modwsgi/wiki/QuickInstallationGuide which involved downloading the file - there is a tar.gz file i get - and then "configuring it" with ./configure --with-python=/home/bharal/.pythonbrew/pythons/Python-2.7.2/bin/python --enable-shared now