On Tue, 7 Jan 2003 00:32:36 +0200 Nikolayev Dmitry <[EMAIL PROTECTED]> wrote:

> Hello!
> 
> Somebody, help me!
> I'm using cygwin.
> I had built DBI without any problems, but when I tried to install
> DBD::Mysql I have a few....
> perl makefile.pl             - no problems
> make
> 
> And we have:
> 
> gcc -c -I/usr/lib/perl5/site_perl/5.6.1/cygwin-multi/auto/DBI
> -I'/usr/local/include/mysql' -DPERL_USE_SAFE_PUTENV -fno-strict-aliasing
> -I/usr/local/include -DUSEIMPORTLIB -O2   -DVERSION=\"2.1022\"
> -DXS_VERSION=\"2.1022\"  -I/usr/lib/perl5/5.6.1/cygwin-multi/CORE 
> dbdimp.c
> gcc -c -I/usr/lib/perl5/site_perl/5.6.1/cygwin-multi/auto/DBI
> -I'/usr/local/include/mysql' -DPERL_USE_SAFE_PUTENV -fno-strict-aliasing
> -I/usr/local/include -DUSEIMPORTLIB -O2   -DVERSION=\"2.1022\"
> -DXS_VERSION=\"2.1022\"  -I/usr/lib/perl5/5.6.1/cygwin-multi/CORE 
> mysql.c
> Running Mkbootstrap for DBD::mysql ()
> chmod 644 mysql.bs
> rm -f blib/arch/auto/DBD/mysql/mysql.dll
> LD_RUN_PATH="/usr/local/lib/mysql" /usr/bin/perl myld ld2  -s
> -L/usr/local/lib dbdimp.o mysql.o  -o blib/arch/auto/DBD/mysql/mysql.dll
>  /usr/lib/perl5/5.6.1/cygwin-multi/CORE/libperl5_6_1.a
> -L/usr/local/lib/mysql -lmysqlclient  
> dllwrap --dllname mysql.dll --driver-name gcc --dlltool dlltool
> --export-all-symbols --as as --output-def libmysql.def --output-lib
> libmysql.a \
> -s -L/usr/local/lib dbdimp.o mysql.o 
> /usr/lib/perl5/5.6.1/cygwin-multi/CORE/libperl5_6_1.a
> -L/usr/local/lib/mysql -lmysqlclient
> chmod 755 blib/arch/auto/DBD/mysql/mysql.dll
> make: *** [blib/arch/auto/DBD/mysql/mysql.dll] Error 1
> 
> What should I do?

Try again and see if you can get more information.  If I recall correctly,
Error 1 indicates that one of the commands failed, but I don't see any
error message coming from gcc, dllwrap, or chmod.  Cutting and pasting each
command into a command window and executing them one at a time may help you
figure out what is going wrong.

Just a wild guess.  Make sure the account you are building in has
permission to set file permissions in blib/arch/auto/DBD/mysql/.  After you
do the last chmod by hand, see if the permissions are rwxr-xr-x.

-- 
Mac :})
** I normally forward private questions to the appropriate mail list. **
Ask Smarter: http://www.tuxedo.org/~esr/faqs/smart-questions.html
Give a hobbit a fish and he eats fish for a day.
Give a hobbit a ring and he eats fish for an age.

Reply via email to