Re: [Zope] Fw: mysqldb

2000-10-13 Thread knight

Have you run ldconfig after editting the /etc/ld/so/conf file? Run
ldconfig -v | grep mysqlclient and see if the library appears. If so,
everything is all set.

Also try an ls -l /usr/local/mysql/lib/libmysql*.

Knight
[EMAIL PROTECTED]

On Fri, 13 Oct 2000, Dale Lance wrote:

> Hi,
> I am trying to build ZMySQLDA 1.20
> mysql has been built successfully on RedHat 7.0 and resides in
> /usr/local/mysql
> I have followed the instructions for editing /etc/ld/so/conf adding
> /usr/local/mysql/lib/mysql
> /usr/local/mysql/lib
> /usr/local/mysql
> to it. (just tomake sure)
> yet I still get the following error
> anyone know where mysqlclient is supposed to be?
> 
> Dale
> 
> 
> > gcc -shared  _mysqlmodule.o  -L/usr/local/mysql/lib -lmysqlclient -o
> > _mysqlmodule.so
> > /usr/bin/ld: cannot find -lmysqlclient
> > collect2: ld returned 1 exit status
> > make: *** [_mysqlmodule.so] Error 1
> > Traceback (innermost last):
> >   File "build.py", line 14, in ?
> > import MySQLdb
> >   File "MySQLdb.py", line 19, in ?
> > from _mysql import *
> > ImportError: No module named _mysql
> >
> >
> 
> 
> 
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - 
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
> 
> 


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] Fw: mysqldb

2000-10-13 Thread Bill Welch

In Debian, this library is in a separate packge.

On Fri, 13 Oct 2000, Dale Lance wrote:

> anyone know where mysqlclient is supposed to be?


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] Fw: mysqldb

2000-10-13 Thread Oleg Broytmann

On Fri, 13 Oct 2000, Dale Lance wrote:
> anyone know where mysqlclient is supposed to be?
> 
> > gcc -shared  _mysqlmodule.o  -L/usr/local/mysql/lib -lmysqlclient -o
> > _mysqlmodule.so
> > /usr/bin/ld: cannot find -lmysqlclient

   It supposed to be in the /usr/local/mysql/lib/libmysqlclient.so. Check
to see it's there. It is usually symlink to libmysqlclient.so.6.23.13 or
such. If it is not - find it on your system and put the directory to -L
flag, e.g

gcc -shared _mysqlmodule.o -L/usr/local/lib/mysql -lmysqlclient -o _mysqlmodule.so

Oleg.(All opinions are mine and not of my employer)
 
Oleg Broytmann  Foundation for Effective Policies  [EMAIL PROTECTED]
   Programmers don't die, they just GOSUB without RETURN.


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] Fw: mysqldb

2000-10-13 Thread jensebaer


- Original Message -
From: "jensebaer" <[EMAIL PROTECTED]>
To: "Dale Lance" <[EMAIL PROTECTED]>
Sent: Friday, October 13, 2000 2:43 PM
Subject: Re: [Zope] Fw: mysqldb


> Hi Dale,
>
> put this in your setup or/and setup.in file under
> ../lib/python/Products/ZMySQLDA/MySQLdb-0.1.2/
>
> *shared*
> # Only one line should be uncommented.
> # Adjust -L and -I as necessary for your local configuration.
> # If you have dynamic MySQL libraries, they will need to be on your
> # LD_LIBRARY_PATH at runtime.
> _mysql _mysqlmodule.c -L/usr/lib/mysql -I/usr/include/mysql -lmysqlclient
> # Uncomment for Windows
> #_mysql
> _mysqlmodule.c -L/mysql/lib/opt -I/mysql/include -lmysqlclient -lwsock32
>
>
> or may _mysql
>
_mysqlmodule.c -L/usr/local/lib/mysql -I/usr/local/include/mysql -lmysqlclie
> nt
>
> Jens
>
> - Original Message -
> From: "Dale Lance" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, October 13, 2000 1:59 PM
> Subject: [Zope] Fw: mysqldb
>
>
> > Hi,
> > I am trying to build ZMySQLDA 1.20
> > mysql has been built successfully on RedHat 7.0 and resides in
> > /usr/local/mysql
> > I have followed the instructions for editing /etc/ld/so/conf adding
> > /usr/local/mysql/lib/mysql
> > /usr/local/mysql/lib
> > /usr/local/mysql
> > to it. (just tomake sure)
> > yet I still get the following error
> > anyone know where mysqlclient is supposed to be?
> >
> > Dale
> >
> >
> > > gcc -shared  _mysqlmodule.o  -L/usr/local/mysql/lib -lmysqlclient -o
> > > _mysqlmodule.so
> > > /usr/bin/ld: cannot find -lmysqlclient
> > > collect2: ld returned 1 exit status
> > > make: *** [_mysqlmodule.so] Error 1
> > > Traceback (innermost last):
> > >   File "build.py", line 14, in ?
> > > import MySQLdb
> > >   File "MySQLdb.py", line 19, in ?
> > > from _mysql import *
> > > ImportError: No module named _mysql
> > >
> > >
> >
> >
> >
> > ___
> > Zope maillist  -  [EMAIL PROTECTED]
> > http://lists.zope.org/mailman/listinfo/zope
> > **   No cross posts or HTML encoding!  **
> > (Related lists -
> >  http://lists.zope.org/mailman/listinfo/zope-announce
> >  http://lists.zope.org/mailman/listinfo/zope-dev )
> >
> >
>

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] Fw: mysqldb

2000-10-13 Thread Dale Lance

Hi,
I am trying to build ZMySQLDA 1.20
mysql has been built successfully on RedHat 7.0 and resides in
/usr/local/mysql
I have followed the instructions for editing /etc/ld/so/conf adding
/usr/local/mysql/lib/mysql
/usr/local/mysql/lib
/usr/local/mysql
to it. (just tomake sure)
yet I still get the following error
anyone know where mysqlclient is supposed to be?

Dale


> gcc -shared  _mysqlmodule.o  -L/usr/local/mysql/lib -lmysqlclient -o
> _mysqlmodule.so
> /usr/bin/ld: cannot find -lmysqlclient
> collect2: ld returned 1 exit status
> make: *** [_mysqlmodule.so] Error 1
> Traceback (innermost last):
>   File "build.py", line 14, in ?
> import MySQLdb
>   File "MySQLdb.py", line 19, in ?
> from _mysql import *
> ImportError: No module named _mysql
>
>



___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )