Re: mercurial cannot be loaded, is there any difference when going from 2.0.0 to 2.2.x?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



i tried to gather additional information concerning mercurial notworking on solaris10 called via cgi script in apache-2.2.4. what couldbe the reason ?
-----------------------------------------------from the command line it works:-----------------------------------------------www-data@myserver ~$ which python/usr/local/bin/pythonwww-data@myserver ~$ echo $LD_LIBRARY_PATH/usr/local/lib:/usr/lib:/usr/local/lib:/opt/sfw/libwww-data@myserver ~$ pythonPython 2.5 (r25:51908, Feb 22 2007, 11:38:23)[GCC 3.4.2] on sunos5Type "help", "copyright", "credits" or "license" for more information.>>> from mercurial.hgweb.hgwebdir_mod import hgwebdir>>> ^Dwww-data@myserver ~
-----------------------------------------------from apache-2.2.4 it does not work:-----------------------------------------------
environment, output via:def print_env():    print "Content-Type: text/html\n\n";    for name, value in os.environ.items():        print "%s\t= %s <br/>" % (name, value)    print sys.path
SERVER_SOFTWARE = Apache/2.2.4 (Unix) DAV/2 mod_python/3.2.10Python/2.5 SVN/1.4.3 mod_ssl/2.2.4 OpenSSL/0.9.8dSCRIPT_NAME = /hgSERVER_SIGNATURE =REQUEST_METHOD = GETSERVER_PROTOCOL = HTTP/1.1QUERY_STRING =PATH = /usr/local/sbin:/usr/local/bin:/usr/local/bin:/usr/ccs/bin:/usr/sbin:/usr/bin:/usr/dt/bin:/usr/local/bin:/cs/local/bin:/opt/sfw/bin:/usr/ccs/bin:/opt/VRTS/binHTTP_USER_AGENT = Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1;SV1; i-NavFourF; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1)TZ = METSERVER_NAME = myserverREMOTE_ADDR = 169.63.210.220SERVER_PORT = 80SERVER_ADDR = 169.62.140.224DOCUMENT_ROOT = /usr/local/data/htdocsSCRIPT_FILENAME = /usr/local/data/hg09/hgwebdir.cgiSERVER_ADMIN = admin@xxxxxxxxxxxxxxxxxxxx = myserverHTTP_CONNECTION = Keep-AliveREQUEST_URI = /hgHTTP_ACCEPT = */*GATEWAY_INTERFACE = CGI/1.1REMOTE_PORT = 3751HTTP_ACCEPT_LANGUAGE = en,de-ch;q=0.7,fr;q=0.3HTTP_ACCEPT_ENCODING = gzip, deflateUNIQUE_ID = XnNQGqk@i@EAAB9ZBgoAAAAF['/usr/local/data/hg09','/usr/local/lib/python2.5/site-packages/setuptools-0.6c3-py2.5.egg','/usr/local/lib/python2.5/site-packages/Genshi-0.4dev_r494-py2.5.egg','/usr/local/lib/python2.5/site-packages/TracAccountManager-0.1.3dev_r1844-py2.5.egg','/usr/local/lib/python2.5/site-packages/TracCombineWiki-1.2-py2.5.egg','/usr/local/lib/python2.5/site-packages/TracForge-1.0-py2.5.egg','/usr/local/lib/python2.5/site-packages/TracWebAdmin-0.1.2dev_r4429-py2.5.egg','/usr/local/lib/python2.5/site-packages/TracHTTPAuth-1.1-py2.5.egg','/usr/local/lib/python2.5/site-packages/IniAdmin-0.1-py2.5.egg','/usr/local/lib/python2.5/site-packages/LdapPlugin-0.5.1dev_r1611-py2.5.egg','/usr/local/lib/python2.5/site-packages/tracreposearch-0.2-py2.5.egg','/usr/local/lib/python2.5/site-packages/TracXMLRPC-0.1-py2.5.egg','/usr/local/lib/python2.5/site-packages/TracTicketDelete-1.1.4-py2.5.egg','/usr/local/lib/python2.5/site-packages/TracNav-3.92-py2.5.egg','/usr/local/lib/python25.zip', '/usr/local/lib/python2.5','/usr/local/lib/python2.5/plat-sunos5','/usr/local/lib/python2.5/lib-tk','/usr/local/lib/python2.5/lib-dynload','/usr/local/lib/python2.5/site-packages']exception output:Python 2.5: /usr/local/bin/python /usr/local/data/hg09/hgwebdir.cgi in ()   29 from mercurial.hgweb.hgwebdir_mod import hgwebdir   30 from mercurial.hgweb.request import wsgiapplication   31 import mercurial.hgweb.wsgicgi as wsgicgi
mercurial undefined, hgwebdir undefined /usr/local/lib/python2.5/site-packages/mercurial/hgweb/__init__.py in ()    7 # of the GNU General Public License, incorporated herein by reference.    9 import hgweb_mod, hgwebdir_mod   11 def hgweb(*args, **kwargs):
hgweb_mod undefined, hgwebdir_mod undefined /usr/local/lib/python2.5/site-packages/mercurial/hgweb/hgweb_mod.py in ()    7 # of the GNU General Public License, incorporated herein by reference.    9 import os, mimetypes, re, zlib, mimetools, cStringIO, sys   10 import tempfile, urllib, bz2   11 from mercurial.node import *os = None, mimetypes = None, re = None, zlib undefined, mimetoolsundefined, cStringIO undefined, sys undefined<type 'exceptions.ImportError'>: ld.so.1: python: fatal: relocationerror: file /usr/local/lib/python2.5/lib-dynload/zlib.so: symbolinflateCopy: referenced symbol not found
-----------------------------------------------file system-----------------------------------------------
# ls -l /usr/local/lib/python2.5/site-packages/mercurial/hgweb/hgweb_mod.py*-rw-r-----   1 www-data other      40810 Mär  2 14:13/usr/local/lib/python2.5/site-packages/mercurial/hgweb/hgweb_mod.py-rw-r-----   1 www-data other      45015 Mär  2 14:34/usr/local/lib/python2.5/site-packages/mercurial/hgweb/hgweb_mod.pyc
-----------------------------------------------try to manipulate LD_LIBRARY_PATH-----------------------------------------------if we try to set the ld_library_path in the hgwebdir.cgi via:os.environ["LD_LIBRARY_PATH"] = "/usr/local/lib:/usr/local/lib:/opt/sfw/lib"the error mentioned above happens.if we enter LD_LIBRARY_PATH in the apache2 envvars file, it seems notto take it (it is not shown in the environment printet above). sotherefor the question if there is anything strange with apache-2.2.4.just to check i entered a echo statement in apachectl to see if itfinds it and print the path# apachectl restartload envvars/usr/local/lib:/usr/local/lib:/opt/sfw/lib
# nm /usr/local/lib/python2.5/lib-dynload/zlib.so | grep inflate[209]   |         0|       0|FUNC |GLOB |0    |UNDEF  |inflate[181]   |         0|       0|FUNC |GLOB |0    |UNDEF  |inflateCopy[192]   |         0|       0|FUNC |GLOB |0    |UNDEF  |inflateEnd[174]   |         0|       0|FUNC |GLOB |0    |UNDEF  |inflateInit2_
-----------------------------------------------q&na (questions and no answers ..)-----------------------------------------------why it does work from the commandline, and not from apache-2.2.4 cgi?seems to be same ld_library_path, same path, same python, samemercurial.
--s

[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux