- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Perl questions
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-15-2004 08:35 AM
тАО09-15-2004 08:35 AM
1. I should reinstall the perl or just install the package when the program needs.
2. If reinstall the perl, should I recompile the Apache after the new perl installed?
Thanks in advance.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-15-2004 08:43 AM
тАО09-15-2004 08:43 AM
Re: Perl questions
http://www.software.hp.com/portal/swdepot/displayProductInfo.do?productNumber=PERL
I don't know if you will have to re-compile Apache or not.
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-16-2004 04:47 AM
тАО09-16-2004 04:47 AM
Re: Perl questions
Just installed the perl5.8.0. I now need to install DBI and DBD::mysql. Is it a good idea to install perl packages thru CPAN or install manually?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-16-2004 05:18 AM
тАО09-16-2004 05:18 AM
SolutionYou can try CPAN or just install manually.
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-16-2004 06:13 AM
тАО09-16-2004 06:13 AM
Re: Perl questions
HP-UX and it works great.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-16-2004 06:14 AM
тАО09-16-2004 06:14 AM
Re: Perl questions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-16-2004 10:29 AM
тАО09-16-2004 10:29 AM
Re: Perl questions
The machine I work on is pretty much not well configured. I sucessfully installed the gcc 3.3.3 from Merijn's website, the DBI 1.43 from CPAN. And now I have problem to install DBD::mysql. I downloaded DBD-mysql-2.1028 from CPAN.
At first when I did a "perl Makefile.PL", the program complaint about "mysql_config" not found. But it let me go on then it stopped at "make". I edited the "Makefile.PL" to include the full path of mysql_config to fix the "mysql_config" problem and run again. Now I had "+DD64" not found, and I edit the Makefile.PL to use cflags="-I$pkgincludedir " without +DD64. And the program still stopped at "make":
/tmp/DBD-mysql-2.1028-># make
gcc -c -I/opt/perl/lib/site_perl/5.8.0/PA-RISC1.1-thread-multi/auto/DBI -I/home/mysql/4.0.18/include -D_POSIX_C_SOURCE=199506L -D_REENTRANT -D_HPUX_SOURCE -fPIC -mpa-risc-1-1 -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O -DVERSION=\"2.1028\" -DXS_VERSION=\"2.1028\" -fPIC "-I/opt/perl/lib/5.8.0/PA-RISC1.1-thread-multi/CORE" dbdimp.c
gcc -c -I/opt/perl/lib/site_perl/5.8.0/PA-RISC1.1-thread-multi/auto/DBI -I/home/mysql/4.0.18/include -D_POSIX_C_SOURCE=199506L -D_REENTRANT -D_HPUX_SOURCE -fPIC -mpa-risc-1-1 -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O -DVERSION=\"2.1028\" -DXS_VERSION=\"2.1028\" -fPIC "-I/opt/perl/lib/5.8.0/PA-RISC1.1-thread-multi/CORE" mysql.c
Running Mkbootstrap for DBD::mysql ()
chmod 644 mysql.bs
rm -f blib/arch/auto/DBD/mysql/mysql.sl
LD_RUN_PATH="/home/mysql/4.0.18/lib:/lib" /opt/perl/bin/perl myld gcc -shared -static-libgcc -fPIC dbdimp.o mysql.o -o blib/arch/auto/DBD/mysql/mysql.sl -L/home/mysql/4.0.18/lib -lmysqlclient -lnsl -lm
*** Error exit code 1
Stop.
I run a
/home/mysql/4.0.18-># ./bin/mysql --version
./bin/mysql Ver 12.22 Distrib 4.0.18, for hp-hpux11.11 (hppa2.0w)
The "/usr/local/mysql" is a link to "/home/mysql/4.0.18". I didn't install the mysql.
Since it didn't give any error, I can't figure out where is the problem. I am runing out my solutions. Should i just reinstall mysql?
Dawn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-17-2004 04:50 AM
тАО09-17-2004 04:50 AM
Re: Perl questions
[...]
LD_RUN_PATH="/usr/local/mysql/lib:/lib" /opt/perl/bin/perl myld gcc -shared -static-libgcc -fPIC dbdimp.o mysql.o -o blib/arch/auto/DBD/mysql/mysql.sl -L/usr/local/mysql/lib -lmysqlclient -lnsl -lm
/usr/ccs/bin/ld: /usr/local/mysql/lib/libmysqlclient.a: Not a valid library (invalid magic
number). Possibly a 64-bit PA archive library (Mismatched ABI).
collect2: ld returned 1 exit status
*** Error exit code 1
Is this telling me the mysql installed was a 64bit version? How do I find out i am using a 11.11 32bits or 64bits?
Thanks.
Dawn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-17-2004 05:55 AM
тАО09-17-2004 05:55 AM
Re: Perl questions
Perl must be recompiled with specific flags in order to support DBD and DBI.
a non threaded Perl must be built but linked with ├в lcl and ├в lpthread as if a threaded Perl is to be built. Oracle on HP-UX uses lpthread, therefore everything that dynamically loads Oracle in the HP-UX environment must be built or linked with lpthread.The downloads and information came from these sites:
o http://www.cpan.org/modules/by-authors/Tim_Bunce
o http://www.cpan.org
o http://search.cpan.org
The comprehensive readme file that I found to be excellent was located in:
o http://search.cpan.org/~timb/DBD-Oracle-1.1.5/README.hpux
This file goes through the installation and configuration process of perl in great detail as well as the subsequent steps for the installation of DBI and DBD.
I am attaching a text document that I have used on more than 8 servers successfully now.
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-22-2004 10:56 AM
тАО09-22-2004 10:56 AM
Re: Perl questions
I finally had the DBD::mysql installed. Someone from perl@lists.mysql.com helped me with that.
The problem was caused by the mysql binary from mysql.com, which didn't compile with "-fPIC", but DBD::mysql required that flag to be set. I had to recompiled the mysql client from source, then install DBD::mysql.
Thank you all