wood burning stoves*
The moose likes Linux / UNIX and the fly likes DBD::mysql installation error on trustix linux Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "DBD::mysql installation error on trustix linux" Watch "DBD::mysql installation error on trustix linux" New topic
Author

DBD::mysql installation error on trustix linux

Sai Shanker
Greenhorn

Joined: Aug 09, 2004
Posts: 17
Hi,

I have downloaded the DBD-mysql-3.0002.tar.gz and I ran perl Makefile.PL which went through but then I tried make and it failed.Then I am tried install the DBD:mysql module using -


perl -MCPAN -e 'install "DBD::mysql"'

Both the times I get the same error below:-

Running Mkbootstrap for DBD::mysql()

Chmod 644 mysql.bs

rm -f blib/arch/auto/DBD/mysql.mysql.so

LD_RUN_PATH=3D3D"" /usr/bin/perl5.8.5 myld gcc -shared -L /usr/local/lib dbdimp.o mysql.o -o /blib/arch/auto/DBD/mysql/mysql.so -L -------------some path---


/usr/bin/ld: line 1 syntax error near unexpected token 'newline'
/usr/bin/ld: line 1: '! < arch > '
collect2 : ld returned 2 exit status

make: *** [blib/arch/auto/DBD/mysql/mysql.so] Error 1

usr/bin/make - NOT OK

Running make test

Can't test without successful make

Running make install


Make had returned bad status, install seems impossible

Any ideas???
Thanks,
Sai.

[ April 19, 2006: Message edited by: Sai Shanker ]

[ April 19, 2006: Message edited by: Sai Shanker ]
[ April 19, 2006: Message edited by: Sai Shanker ]
Sai Shanker
Greenhorn

Joined: Aug 09, 2004
Posts: 17
Hi,
Actually when i try to run "make" to install anything i get the same error.

/usr/bin/ld: line 1 syntax error near unexpected token 'newline'
/usr/bin/ld: line 1: '! < arch > '
collect2 : ld returned 2 exit status


I guess there is something really "fishy" which i am not able to catch. I have really got tired of seeing it.


Any ideas?
Thanks,
Sai.

[ April 20, 2006: Message edited by: Sai Shanker ]
[ April 20, 2006: Message edited by: Sai Shanker ]
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16019
    
  20

Did you create these files under Windows? Unix isn't very tolerant of the extra end-of-line character (^M) that Windows text files uses. Java's text I/O services will accept it and throw it away, but most native Unix apps will get annoyed.


Customer surveys are for companies who didn't pay proper attention to begin with.
Sai Shanker
Greenhorn

Joined: Aug 09, 2004
Posts: 17
Hi Tim,
Thanks for your help. As i had one last option i resorted to it. I formatted and reinstalled everything and it worked fine.
Thanks,
Sai.
[ April 25, 2006: Message edited by: Sai Shanker ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: DBD::mysql installation error on trustix linux