[Zope] ZMySQLDA Problem

Steve Spicklemire steve@spvi.com
Sun, 25 Nov 2001 12:28:05 -0500


Umm... why do you care about the path of nobody? Your own path is set up 
in your shell's initialization script. (e.g., .cshrc). What shell are 
you using? If it's bash then I think the init script is .bashrc or 
something like that. I don't use bash myself.. so I'm not sure. In any 
case, you can build the mysql stuff as a normal user.

good luck!
-steve

On Sunday, November 25, 2001, at 12:04 PM, Ben Ocean wrote:

> At 05:58 AM 11/25/01 -0500, you wrote:
>> Hi Ben,
>>
>>         It's probably your $PATH. Make sure the right python is found 
>> first! You can also try specifying it explicitly:
>
> How do I change my $PATH to find the right python?
> su - nobody -c echo > $PATH
> and a few find commands showed me it's either in
> /usr/bin/python
> or
> /usr/local/bin/python
> or maybe both. How do I change it?
> TIA,
> BenO
>
>
>> e.g., /usr/local/bin/python2.1 ....
>>
>> -steve
>>
>> On Sunday, November 25, 2001, at 05:52 AM, Ben Ocean wrote:
>>
>>> Oops. Ran into that old familiar problem of having 2 versions of 
>>> Python running. The one I don't need (1.5.2) is always summoned. Need 
>>> to find a way to kill it.
>>> Thanks,
>>> BenO
>>>
>>> At 04:26 AM 11/25/01 -0500, you wrote:
>>>> Ben,
>>>>
>>>> Use MySQL-python:
>>>>
>>>> http://sourceforge.net/projects/mysql-python
>>>>
>>>> It works pretty much out of the box in my experience!
>>>>
>>>> -steve
>>>>
>>>>
>>>>
>>>> On Saturday, November 24, 2001, at 11:46 PM, Ben Ocean wrote:
>>>>
>>>>> Hi;
>>>>> Does anyone know how to get this to work? This is my second request 
>>>>> for help. Please.
>>>>>
>>>>> I followed the instructions to install ZMySQLDA but ran into 
>>>>> problems. First up, it appears that I do have the necessary python 
>>>>> modules:
>>>>>
>>>>> [root@hermes i386]# rpm -qa|grep MySQL
>>>>> MySQL-client-3.23.42-1
>>>>> MySQL-3.23.42-1
>>>>> MySQL-devel-3.23.42-1
>>>>>
>>>>> ...and make -f Makefile.pre.in boot goes smoothly, but when I try 
>>>>> make I get this:
>>>>>
>>>>> [root@hermes src]# make
>>>>> gcc -fPIC -g -O2 -Wall -Wstrict-prototypes -I/usr/include/python2.1 
>>>>> -I/usr/include/python2.1 -DHAVE_CONFIG_H  
>>>>> -I/usr/local/mysql/include -I/usr/include/mysql -c 
>>>>> ././MySQLmodule.c -o ./MySQLmodule.o
>>>>> ././MySQLmodule.c:199: warning: function declaration isn't a 
>>>>> prototype
>>>>> ././MySQLmodule.c: In function `clear_channel':
>>>>> ././MySQLmodule.c:204: warning: suggest parentheses around 
>>>>> assignment used as truth value
>>>>> ././MySQLmodule.c: At top level:
>>>>> ././MySQLmodule.c:217: warning: function declaration isn't a 
>>>>> prototype
>>>>> ././MySQLmodule.c:229: warning: function declaration isn't a 
>>>>> prototype
>>>>> ././MySQLmodule.c: In function `pythonify_row':
>>>>> ././MySQLmodule.c:238: warning: assignment from incompatible 
>>>>> pointer type
>>>>> ././MySQLmodule.c: At top level:
>>>>> ././MySQLmodule.c:339: warning: function declaration isn't a 
>>>>> prototype
>>>>> ././MySQLmodule.c: In function `pythonify_res':
>>>>> ././MySQLmodule.c:344: warning: `thisrow' might be used 
>>>>> uninitialized in this function
>>>>> ././MySQLmodule.c: At top level:
>>>>> ././MySQLmodule.c:373: warning: function declaration isn't a 
>>>>> prototype
>>>>> ././MySQLmodule.c: In function `pythonify_res_fields':
>>>>> ././MySQLmodule.c:384: invalid lvalue in unary `&'
>>>>> ././MySQLmodule.c:378: warning: `tf' might be used uninitialized in 
>>>>> this function
>>>>> ././MySQLmodule.c: At top level:
>>>>> ././MySQLmodule.c:483: warning: function declaration isn't a 
>>>>> prototype
>>>>> ././MySQLmodule.c:502: warning: function declaration isn't a 
>>>>> prototype
>>>>> ././MySQLmodule.c:530: warning: function declaration isn't a 
>>>>> prototype
>>>>> ././MySQLmodule.c:562: warning: function declaration isn't a 
>>>>> prototype
>>>>> ././MySQLmodule.c:580: warning: function declaration isn't a 
>>>>> prototype
>>>>> ././MySQLmodule.c:607: warning: function declaration isn't a 
>>>>> prototype
>>>>> ././MySQLmodule.c:634: warning: function declaration isn't a 
>>>>> prototype
>>>>> ././MySQLmodule.c:662: warning: function declaration isn't a 
>>>>> prototype
>>>>> ././MySQLmodule.c:688: warning: function declaration isn't a 
>>>>> prototype
>>>>> ././MySQLmodule.c:722: warning: function declaration isn't a 
>>>>> prototype
>>>>> ././MySQLmodule.c:734: warning: function declaration isn't a 
>>>>> prototype
>>>>> ././MySQLmodule.c:753: warning: function declaration isn't a 
>>>>> prototype
>>>>> ././MySQLmodule.c:767: warning: function declaration isn't a 
>>>>> prototype
>>>>> ././MySQLmodule.c:779: warning: function declaration isn't a 
>>>>> prototype
>>>>> ././MySQLmodule.c:796: warning: function declaration isn't a 
>>>>> prototype
>>>>> ././MySQLmodule.c: In function `DBH_clientinfo':
>>>>> ././MySQLmodule.c:799: warning: unused variable `info'
>>>>> ././MySQLmodule.c: At top level:
>>>>> ././MySQLmodule.c:815: warning: function declaration isn't a 
>>>>> prototype
>>>>> ././MySQLmodule.c:832: warning: function declaration isn't a 
>>>>> prototype
>>>>> ././MySQLmodule.c:849: warning: function declaration isn't a 
>>>>> prototype
>>>>> ././MySQLmodule.c:866: warning: function declaration isn't a 
>>>>> prototype
>>>>> ././MySQLmodule.c:885: warning: function declaration isn't a 
>>>>> prototype
>>>>> ././MySQLmodule.c:902: warning: function declaration isn't a 
>>>>> prototype
>>>>> ././MySQLmodule.c:920: warning: function declaration isn't a 
>>>>> prototype
>>>>> ././MySQLmodule.c:973: warning: function declaration isn't a 
>>>>> prototype
>>>>> ././MySQLmodule.c:986: warning: function declaration isn't a 
>>>>> prototype
>>>>> ././MySQLmodule.c:994: warning: function declaration isn't a 
>>>>> prototype
>>>>> ././MySQLmodule.c:1032: warning: function declaration isn't a 
>>>>> prototype
>>>>> ././MySQLmodule.c:1040: warning: function declaration isn't a 
>>>>> prototype
>>>>> ././MySQLmodule.c:1070: warning: function declaration isn't a 
>>>>> prototype
>>>>> ././MySQLmodule.c:1085: warning: function declaration isn't a 
>>>>> prototype
>>>>> ././MySQLmodule.c:1102: warning: function declaration isn't a 
>>>>> prototype
>>>>> ././MySQLmodule.c: In function `STH_fetchdict':
>>>>> ././MySQLmodule.c:1125: invalid lvalue in unary `&'
>>>>> ././MySQLmodule.c:1147: invalid lvalue in unary `&'
>>>>> ././MySQLmodule.c:1111: warning: `tf' might be used uninitialized 
>>>>> in this function
>>>>> ././MySQLmodule.c: At top level:
>>>>> ././MySQLmodule.c:1176: warning: function declaration isn't a 
>>>>> prototype
>>>>> ././MySQLmodule.c:1192: warning: function declaration isn't a 
>>>>> prototype
>>>>> ././MySQLmodule.c:1201: warning: function declaration isn't a 
>>>>> prototype
>>>>> ././MySQLmodule.c:1210: warning: function declaration isn't a 
>>>>> prototype
>>>>> ././MySQLmodule.c:1225: warning: function declaration isn't a 
>>>>> prototype
>>>>> ././MySQLmodule.c:1234: warning: function declaration isn't a 
>>>>> prototype
>>>>> ././MySQLmodule.c:1257: warning: function declaration isn't a 
>>>>> prototype
>>>>> ././MySQLmodule.c:1265: warning: function declaration isn't a 
>>>>> prototype
>>>>> ././MySQLmodule.c:1296: warning: function declaration isn't a 
>>>>> prototype
>>>>> make: *** [MySQLmodule.o] Error 1
>>>>>
>>>>> What are all these warnings and what have I done wrong?
>>>>> TIA,
>>>>> BenO
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Zope maillist  -  Zope@zope.org
>>>>> 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 )
>