Unable to install JCR on Solaris 10 x86

  • Akshay Ranjan

    Akshay Ranjan - 2008-08-05

    virgo>jcr-0.6.2# easy_install -f . jcr[mysql]
    Searching for jcr[mysql]
    Best match: jcr 0.6.2
    Processing jcr-0.6.2.egg
    removing '/opt/csw/lib/python/site-packages/jcr-0.6.2.egg' (and everything under it)
    creating /opt/csw/lib/python/site-packages/jcr-0.6.2.egg
    Extracting jcr-0.6.2.egg to /opt/csw/lib/python/site-packages
    jcr 0.6.2 is already the active version in easy-install.pth

    Installed /opt/csw/lib/python/site-packages/jcr-0.6.2.egg
    Processing dependencies for jcr[mysql]
    Searching for simplejson>=1.7.1
    Reading http://pypi.python.org/simple/simplejson/
    Reading http://undefined.org/python/#simplejson
    Best match: simplejson 1.9.2
    Downloading http://pypi.python.org/packages/source/s/simplejson/simplejson-1.9.2.tar.gz#md5=9fe5d9a98da5ffc347bfee2ccf386fcb
    Processing simplejson-1.9.2.tar.gz
    Running simplejson-1.9.2/setup.py -q bdist_egg --dist-dir /tmp/easy_install--MpEJF/simplejson-1.9.2/egg-dist-tmp-f1dKYM
    ld: fatal: library -lpython2.5: not found
    ld: fatal: File processing errors. No output written to build/lib.solaris-2.10-i86pc-2.5/simplejson/_speedups.so
    WARNING: The C extension could not be compiled, speedups are not enabled.
    Failure information, if any, is above.
    I'm retrying the build without the C extension now.
    error: Setup script exited with error: can't copy 'simplejson.egg-info/native_libs.txt': doesn't exist or not a regular file

    virgo>jcr-0.6.2# which python
    virgo>jcr-0.6.2# python -V
    Python 2.5.1
    virgo>jcr-0.6.2# uname -a
    SunOS virgo 5.10 Generic_118855-33 i86pc i386 i86pc

    Please help !!!


    • John Dickson

      John Dickson - 2008-08-05

      Hi Akshay

      I've never tried installing the simplejson package on Solaris, but from googling I've found that it needs the following packages on Debian Linux, which may give you some idea of its requirements:
        binutils gcc libc6-dev linux-kernel-headers python-dev

      Given the 'ld' message about python2.5 not being found, I wonder if the problem is that you don't have the Python headers package (python-dev on Debian) installed?  That would cause compilation of the C extension to fail.

      If that doesn't work, you might like to look at this thread: http://www.gossamer-threads.com/lists/python/python/634885?page=last .  Towards the bottom there are some (rough) instructions for downloading and copying the directory into place in your Python site-packages directory (make sure you use easy_install to remove simplejson first), which should give you a working version but without the C extension.

      Good luck!  Let me know how you go.

      Cheers ............................ JD

    • Akshay Ranjan

      Akshay Ranjan - 2008-08-05

      Hi JD,

      Thanx for your reply.

      I am going through all the packages that I have installed on my Solaris 10 machine.

      Perhaps, I would be missing the dev headers package fro Python.

      Will keep you posted.


    • Akshay Ranjan

      Akshay Ranjan - 2008-08-05

      The problem was very simple.

      I had my python installation done via CSW repository for Solaris.

      Hence my libpython2.5.so was present in /opt/csw/lib/ folder which easy_install wasn't able to find.

      I simply copied  libpython2.5.so from /opt/csw/lib to /lib and problem fixed.



Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks