Welcome Guest [Log In] [Register]
Welcome to Techadept. We hope you enjoy your visit.


You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
Building DBD::Sybase on Solaris 10
Topic Started: Oct 12 2011, 03:10 PM (227 Views)
CrossAdept
No Avatar
Administrator
So, I was trying and failing to build the DBD::Sybase module on a Solaris 10 system.

I was getting the following error:

"/usr/ucb/cc: language optional software package not installed"

Googling that led me to understand that the normal compiler for Solaris was not installed. GCC, however, was. But I wasn't able to use it to compile the module.

As usual, Google again came to my rescue:

http://use.perl.org/~thinc/journal/30662

This only works if you have the Sybase Open Client installed, but if you're running Sybase you probably do. It also supposes that you have the GCC compiler instead of the commercial compiler for Solaris.

From the directory where I unpacked the module tarball, I followed these steps:

Code:
 

PATH=$PATH:/usr/sfw/bin:/usr/perl5/5.8.4/bin
#or wherever perlgcc is installed
export PATH
. /opt/sybase15/SYBASE.sh
#or wherever SYBASE.sh is installed
perlgcc Makefile.PL
gmake
gmake test
gmake install


Fortunately for me, this worked like a charm. I learned that the perlgcc command exists and you can bet I'm going to find out a little more about it.
Edited by CrossAdept, Oct 12 2011, 03:12 PM.
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Perl & Other Dynamic Languages · Next Topic »
Add Reply