[Distutils] Re: Distutils-SIG digest, Vol 1 #542 - 1 msg
Dean Goodmanson
goodmansond@hotmail.com
Fri Jun 29 17:53:01 2001
>From: distutils-sig-request@python.org
>Reply-To: distutils-sig@python.org
>To: distutils-sig@python.org
>Subject: Distutils-SIG digest, Vol 1 #542 - 1 msg
>Date: Fri, 29 Jun 2001 12:01:03 -0400
>
>Send Distutils-SIG mailing list submissions to
> distutils-sig@python.org
>
>To subscribe or unsubscribe via the World Wide Web, visit
> http://mail.python.org/mailman/listinfo/distutils-sig
>or, via email, send a message with subject or body 'help' to
> distutils-sig-request@python.org
>
>You can reach the person managing the list at
> distutils-sig-admin@python.org
>
>When replying, please edit your Subject line so it is more specific
>than "Re: Contents of Distutils-SIG digest..."
>
>
>Today's Topics:
>
> 1. Trouble installing on a VPS (a shared web hosting setup) (tracy s.
>ruggles)
>
>--__--__--
>
>Message: 1
>Date: Thu, 28 Jun 2001 18:05:38 -0500
>From: "tracy s. ruggles" <trace@reinventnow.com>
>To: <distutils-sig@python.org>
>Subject: [Distutils] Trouble installing on a VPS (a shared web hosting
>setup)
>
>Hi,
>
>I've been troubling myself with trying to install MySQLdb on my VPS (a
>shared web hosting setup).
>
>I have my own copy of Python running out of my /usr/local directory.
>
>I have had to edit Lib/distutils/sysconfig.py to have it return the
>appropriate include and library directories. It assumes a certain
>structure
>of directories from the root directory. But, my root directory is actually
>/usr/home/ol0401
>
>Anyway, here's what I get when I try to run the MySQLdb setup.py script:
>
>..
>
> ol0401.vwh.net% python setup.py build
> running build
> running build_py
> not copying CompatMysqldb.py (output up-to-date)
> not copying _mysql_exceptions.py (output up-to-date)
> not copying MySQLdb/__init__.py (output up-to-date)
> not copying MySQLdb/converters.py (output up-to-date)
> not copying MySQLdb/connections.py (output up-to-date)
> not copying MySQLdb/cursors.py (output up-to-date)
> not copying MySQLdb/sets.py (output up-to-date)
> not copying MySQLdb/times.py (output up-to-date)
> not copying MySQLdb/constants/__init__.py (output up-to-date)
> not copying MySQLdb/constants/CR.py (output up-to-date)
> not copying MySQLdb/constants/FIELD_TYPE.py (output up-to-date)
> not copying MySQLdb/constants/ER.py (output up-to-date)
> not copying MySQLdb/constants/FLAG.py (output up-to-date)
> not copying MySQLdb/constants/REFRESH.py (output up-to-date)
> not copying MySQLdb/constants/CLIENT.py (output up-to-date)
> running build_ext
> building '_mysql' extension
> skipping _mysql.c (build/temp.solaris-2.6-sun4u-2.1/_mysql.o
>up-to-date)
> gcc -shared build/temp.solaris-2.6-sun4u-2.1/_mysql.o
>/usr/home/ol0401/usr/local/mysql-3.23.38/lib/mysql/libmysqlclient.a
>-L/usr/home/ol0401/usr/local/mysql-3.23.38/lib/mysql
>-R/usr/home/ol0401/usr/local/mysql-3.23.38/lib/mysql -lmysqlclient -lz -o
>build/lib.solaris-2.6-sun4u-2.1/_mysql.so
> /usr/local/sparc-sun-solaris2.6/bin/ld: cannot open -lz: No such file
>or
>directory
> collect2: ld returned 1 exit status
> error: command 'gcc' failed with exit status 1
> ol0401.vwh.net%
>
>..
>
>As you can see, it successfully builds many of the files, but chokes when
>it
>starts to build the _mysql extension.
>
>I've verified that all of the files listed in that last "gcc" command
>actually exist, except for the _mysql.so file.
>
>I'm totally unfamiliar with gcc and building in general. Does anyone know
>what's going on here?
>
>And, also, is there a way to get the distutils package to work when it's
>being run in an environment where the user is in a shared web hosting
>environment?
>
>Thanks,
>Tracy
>
>
>--
>Tracy S. Ruggles :: trace@reinventnow.com :: 512/858.2280
>
>"RHUBARB. / Rhubarb is susan not susan not seat in bunch toys not wild and
>laughable not in little places not in neglect and vegetable not in fold
>coal
>age not please." -- Gertrude Stein
>
>
>
>
>
>--__--__--
>
>_______________________________________________
>Distutils-SIG maillist - Distutils-SIG@python.org
>http://mail.python.org/mailman/listinfo/distutils-sig
>
>
>End of Distutils-SIG Digest
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com