Gossamer Forum
Home : Products : Gossamer Links : Version 1.x :

DBD::mysql install Problem!! Alex Help Me!!

Quote Reply
DBD::mysql install Problem!! Alex Help Me!!
After install mysql : when i try to setup .cgi the result is:

*************************************************************************************
Loading SQL definitions and DBD::mysql.
SQL.mysql file loaded.
DBD::mysql not found! Perhaps you mistyped the driver name, or it may not be installed. Error message was:
Can't locate DBD/mysql.pm in @INC (@INC contains: .. .. /usr/lib/perl5/5.00503/i386-linux /usr/lib/perl5/5.00503 /usr/lib/perl5/site_perl/5.005/i386-linux /usr/lib/perl5/site_perl/5.005 .) at setup.cgi line 152.


Aborting .. please install the appropriate DBD driver and rerun setup.cgi.

******************************************************************************

So , At telnet i follow the step

1) perl -MCPAN -e shell

2) install DBI

3) install DBD::mysql

But at step 3 after typing username & password have problem as below :

*******************************************************************************
Creating files for MySQL ..........................
Checking if your kit is complete...
Looks good
Warning: prerequisite Data::ShowTable 0 not found at (eval 14) line 220.
Using DBI 1.13 installed in /usr/lib/perl5/site_perl/5.005/i386-linux/auto/DBI
Writing Makefile for DBD::mysql
Writing Makefile for Msql-Mysql-modules
make: *** No targets. Stop.
/usr/bin/make -- NOT OK
Running make test
Oops, make had returned bad status
Running make install
Oops, make had returned bad status

*******************************************************************************

Alex please help me , Thank You.
Quote Reply
Re: DBD::mysql install Problem!! Alex Help Me!! In reply to
Try installing Data::ShowTable

The other thing is to try to install the whole bundle:

Bundle: BD::mysql

That should go get all the required modules, and dependencies.



------------------
POSTCARDS.COM -- Everything Postcards on the Internet www.postcards.com
LinkSQL FAQ: www.postcards.com/FAQ/LinkSQL/








Quote Reply
Re: DBD::mysql install Problem!! Alex Help Me!! In reply to
To Pugdog

when i install Data::ShowTable
the results is:
***********************
Checking if your kit is complete...
Looks good
Using DBI 1.13 installed in /usr/lib/perl5/site_perl/5.005/i386-linux/auto/DBI
Writing Makefile for DBD::mysql
Writing Makefile for Data::ShowTable
make: *** No targets. Stop.
/usr/bin/make -- NOT OK
Running make test
Oops, make had returned bad status
Running make install
Oops, make had returned bad status
*************************

------------------------------------------------------------------------
------------------------------------------------------------------------
To Bear

the rpm link file for glibc and glibc-devel is same
ftp://ftp.redhat.com/pub/redhat/redhat-6.1/SRPMS/SRPMS/glibc-2.1.2-11.src.rpm
so I just can install glibc-2.1.2-11.src.rpm

and also cannot install mysql.

Help Me Please! Very Very Ungent!!

------------------------------------------------------------------------
------------------------------------------------------------------------
Quote Reply
Re: DBD::mysql install Problem!! Alex Help Me!! In reply to
I think a lot of you having problem to install all the necessary files of LinksSQL. The following is some of my experiences, especially if you are running RH 5.2.

Most of the problem to install the mysql or those modules because the imcompitable of glibc or glibc-devel rpm files. You should update it to the lastest version. Please found it at http://www.rpmfind.net
After you upgrade it, I think everything will be alright.

If you have problem to compile the DataShowtable, Data-ShowTable and DBI, acutally, you can directly install the RPM version, it works fine for me.

As for the Msql-Mysql-modules, the rpm doesn't work for me, I need to compiled it. At first, I can't comiled it, but after I upgarde the glibc and glibc-devel rpm files, everything just works fine.

I hope this help.



------------------
Bear EveryWhere
Quote Reply
Re: DBD::mysql install Problem!! Alex Help Me!! In reply to
Are you running this as "root" ???

Very often those are the type of error messages you get when the program can't write out the files where they need to go.



------------------
POSTCARDS.COM -- Everything Postcards on the Internet www.postcards.com
LinkSQL FAQ: www.postcards.com/FAQ/LinkSQL/








Quote Reply
Re: DBD::mysql install Problem!! Alex Help Me!! In reply to
To Pugdog:
Yes, Iam using "root" to install.
But still can not run.
Quote Reply
Re: DBD::mysql install Problem!! Alex Help Me!! In reply to
Actually, I didn't install the glibc and glib soruce file, i just installed the pre-complied rpm version. Your version is the same as mine.

If you really have problem for to install Data:ShowTable, I really suggest you to install the rpm version as well. Just install the pre-complied rpm version is ok.

------------------
Bear EveryWhere
Quote Reply
Re: DBD::mysql install Problem!! Alex Help Me!! In reply to
Khon,

That's very strange, try installing Data::ShowTable manually. Download it from CPAN, unarchive it then run:

perl Makefile.PL
make
make test
make install

and see if it goes in ok. If so, then try DBD::mysql manually as well.

Cheers,

Alex
Quote Reply
Re: DBD::mysql install Problem!! Alex Help Me!! In reply to
Creating Links: BSQL Database object.
Illegal character \015 (carriage return) at ../Links/DBSQL.pm line 24, <> chunk 5.
Unable to load Links: BSQL object, are you in the setup directory?

Connecting to the database.
Unable to connect! Error message:
Can't call method "connect" without a package or object reference at setup.cgi line 240, <> chunk 5.


Aborting.. please confirm your database connection information.
-----------------------

Am I missing anything?
Quote Reply
Re: DBD::mysql install Problem!! Alex Help Me!! In reply to
Did you upload in binaary or ASCII ??



------------------
POSTCARDS.COM -- Everything Postcards on the Internet www.postcards.com
LinkSQL FAQ: www.postcards.com/FAQ/LinkSQL/