LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-12-2010, 04:22 AM   #1
magk
LQ Newbie
 
Registered: Mar 2010
Posts: 15

Rep: Reputation: 0
Perl DBD::ODBC installation Problem


Hi

Im using RHEL 5.5 Server System for my project.

I tried to install Perl DBD::ODBC module thro CPAN (perl -MCPAN -e 'install DBD::ODBC') and i got the following error messages

Code:
Writing Makefile for DBD::ODBC
Warning: not all required environment variables are set.

Warning: Will not be able to run tests as you have not defined
all of DBI_DSN, DBI_USER and DBI_PASS environment variables.
cp Changes blib/lib/DBD/ODBC/Changes.pm
cp FAQ blib/lib/DBD/ODBC/FAQ.pm
cp ODBC.pm blib/lib/DBD/ODBC.pm
gcc -c -DHAVE_UNISTD_H -DHAVE_PWD_H -DHAVE_SYS_TYPES_H -DHAVE_LONG_LONG -DSIZEOF_LONG=4  -I/usr/include  -I. -I/usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/auto/DBI -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables   -DVERSION=\"1.25\" -DXS_VERSION=\"1.25\" -fPIC "-I/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE"  -DHAVE_UNISTD_H -DHAVE_PWD_H -DHAVE_SYS_TYPES_H -DHAVE_LONG_LONG -DSIZEOF_LONG=4  -I/usr/include ConvertUTF.c
/bin/sh: gcc: command not found
make: *** [ConvertUTF.o] Error 127
  /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

DBI 1.52 and gcc 4.4 are installed in the system. gcc 4.4 is available under /usr/bin/gcc and path is set to this location under /etc/profile
Kindly suggest any workarounds for this issue.

Thanks & Regards
magk
 
Old 11-12-2010, 07:06 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by magk View Post
Hi
Im using RHEL 5.5 Server System for my project.
I tried to install Perl DBD::ODBC module thro CPAN (perl -MCPAN -e 'install DBD::ODBC') and i got the following error messages

Code:
Writing Makefile for DBD::ODBC
Warning: not all required environment variables are set.

Warning: Will not be able to run tests as you have not defined
all of DBI_DSN, DBI_USER and DBI_PASS environment variables.
cp Changes blib/lib/DBD/ODBC/Changes.pm
cp FAQ blib/lib/DBD/ODBC/FAQ.pm
cp ODBC.pm blib/lib/DBD/ODBC.pm
gcc -c -DHAVE_UNISTD_H -DHAVE_PWD_H -DHAVE_SYS_TYPES_H -DHAVE_LONG_LONG -DSIZEOF_LONG=4  -I/usr/include  -I. -I/usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/auto/DBI -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables   -DVERSION=\"1.25\" -DXS_VERSION=\"1.25\" -fPIC "-I/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE"  -DHAVE_UNISTD_H -DHAVE_PWD_H -DHAVE_SYS_TYPES_H -DHAVE_LONG_LONG -DSIZEOF_LONG=4  -I/usr/include ConvertUTF.c
/bin/sh: gcc: command not found
make: *** [ConvertUTF.o] Error 127
  /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

DBI 1.52 and gcc 4.4 are installed in the system. gcc 4.4 is available under /usr/bin/gcc and path is set to this location under /etc/profile
Well, did you read the error??
Quote:
Warning: not all required environment variables are set.
Warning: Will not be able to run tests as you have not defined
all of DBI_DSN, DBI_USER and DBI_PASS environment variables.
So, set those environment variables, and run the make again. If you're in the BASH shell, it's "export DBI_DSN="<whatever>"". Read the instructions that came with the program, too, as it'll tell you these things. And since you're using RHEL, then CALL REDHAT SUPPORT, since you're paying for it.
 
Old 11-16-2010, 03:47 AM   #3
magk
LQ Newbie
 
Registered: Mar 2010
Posts: 15

Original Poster
Rep: Reputation: 0
Hi

I have set those 3 environment variables using export as you had mentioned.
for example this is how i set for DBI_DSN
Code:
export DBI_DSN=dbi:ODBC:<dsn_name>
But still the warning is persistent.

Code:
Warning: Will not be able to run tests as you have not defined
all of DBI_DSN, DBI_USER and DBI_PASS environment variables.
Thanks
 
Old 11-16-2010, 03:53 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
.... And may be it's easier to install with yum ? ?

# yum install perl-DBD-ODBC

The package 'perl-DBD-ODBC' is in the 'rpmforge.repo .

..
 
Old 11-16-2010, 07:26 AM   #5
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by magk View Post
Hi
I have set those 3 environment variables using export as you had mentioned.
for example this is how i set for DBI_DSN
Code:
export DBI_DSN=dbi:ODBC:<dsn_name>
But still the warning is persistent.
Code:
Warning: Will not be able to run tests as you have not defined
all of DBI_DSN, DBI_USER and DBI_PASS environment variables.
From my first response:
Quote:
Read the instructions that came with the program, too, as it'll tell you these things. And since you're using RHEL, then CALL REDHAT SUPPORT, since you're paying for it.
Did you read the instructions? Call RedHat support? knudfl makes a good point that installing from repository would be better...but again, RedHat support could walk you through this, but if you're NOT paying for support, you won't be able to access the online repos.

And there is a README that came with the file, which covers how to install/set up the software. If your example is verbatim, you're missing the quotes around the definition.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] DBD::ODBC works as root but not as non-root user on CentOS5 - any ideas? prgupta Red Hat 2 07-13-2010 12:20 AM
Bugzilla installation -- DBD::Mysql perl errors jbiz Linux - Software 2 09-15-2008 11:31 PM
Problem installing Perl DBD::mysql orfiyus Linux - Software 6 03-03-2007 01:52 PM
perl-DBD-MySQL installation problem kartheekpn Linux - Software 3 09-23-2005 03:01 AM
DBD-MySql-2.9004 Installation problem on Linux RedHat 9 luth Linux - Software 4 11-30-2004 04:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration