PEPPLER.ORG
Michael Peppler
Sybase Consulting
Menu
Home
Sybase on Linux
Install Guide for Sybase on Linux
General Sybase Resources
General Perl Resources
Freeware
Sybperl
Sybase::Simple
DBD::Sybase
BCP Tool
Bug Tracker
Mailing List Archive
Downloads Directory
FAQs
Sybase on Linux FAQ
Sybperl FAQ
Personal
Michael Peppler's resume

sybperl-l Archive

Up    Prev    Next    

From: "T dot Kim Nguyen" <kim at algorithmics dot com>
Subject: Re: Static linking
Date: Feb 22 1996 7:54PM

>>>>> In article <9602220706.AA10515@itf.ch>, mpeppler@itf.CH (Michael Peppler) writes:

    >> From: Tom Wilson <73123.1360@compuserve.com>
    >> 
    >> I compiled sybperl2.0 into perl5.001m using static linking (CONFIG
    >> "LINKTYPE=static"). Yet when I ran the executable on another machine with the
    >> Sybase libraries in a different location, I got an error message that it
    >> couldn't find the Sybase shared libraries.  What else do I have to do to get
    >> static linking?

When I encounter a problem locating Sybase .so's, it's usually solved
by adding the appropriate directory to the LD_LIBRARY_PATH environment
variable (I'm assuming this is for SunOS / Solaris).  Eg., for csh, 

	setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:/home/sybase/lib

equivalently, if you've got the SYBASE env var set:

	setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:$SYBASE/lib

unless you want to have absolutely everything linked into the same
executable (ugh!), in which case you should do what Michael
suggested...

--
      T. Kim Nguyen -- kim@algorithmics.com / k.nguyen@ieee.org
		  Database Development & Integration
Financial Risk Management Systems -- Algorithmics Inc., Toronto, Ontario