dbTalk Databases Forums  

Install issue on SLES-10

mailing.database.mysql-plusplus mailing.database.mysql-plusplus


Discuss Install issue on SLES-10 in the mailing.database.mysql-plusplus forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Gary Anderson
 
Posts: n/a

Default Install issue on SLES-10 - 09-25-2006 , 04:18 PM






--------------060801000103030008030700
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

I'm trying to get the package installed on Novell SLES-10. Make ran OK
once I provided the correct paths for the include and library files for
mysql. However, when I try to run the examples, I get the error that
libmysqlpp.so cannot be found. Being somewhat of a SLES/Linux novice, I
don't know where to set up a configuration so that the file is
locateable. Can someone provide instructions?
Thanks


--------------060801000103030008030700
Content-Type: text/plain; charset=us-ascii


--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw
--------------060801000103030008030700--

Reply With Quote
  #2  
Old   
Warren Young
 
Posts: n/a

Default Re: Install issue on SLES-10 - 09-26-2006 , 02:20 AM






Gary Anderson wrote:
Quote:
when I try to run the examples, I get the error that
libmysqlpp.so cannot be found.
You probably haven't installed the library yet. The examples and the
library are in separate subdirectories, and Linux's dynamic library
loader doesn't know where to find it. Linux will only look in a few
very specific places for the library, and ../lib is not one of them.

If you want to test the library before you formally install it, use a
command like this:

$ LD_LIBRARY_PATH=../lib ./simple1 localhost someuser hispassword

That clues the dynamic loader that ../lib should also be searched for
libraries.

Otherwise, just install the library, and the examples should run without
any jiggery-pokery.

--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw



Reply With Quote
  #3  
Old   
Gary Anderson
 
Posts: n/a

Default Re: Install issue on SLES-10 - 09-26-2006 , 09:26 AM



--------------000104010408060205030901
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Sorry for the lack of information. I had actually run the full make,
then make install. When I tried to run make install again, the response
was that nothing needed to be done, as expected. The library was
actually installed in /usr/local/lib. Apparently it did not get on some
type of configuration list for the dynamic library loader. That is the
issue I am trying to solve.

Your suggestion of the LD_LIBRARY_PATH worked temporarily, but I need to
make that configuration permanent on the system. Do you have any
suggestions?

Warren Young wrote:

Quote:
Gary Anderson wrote:

when I try to run the examples, I get the error that libmysqlpp.so
cannot be found.


You probably haven't installed the library yet. The examples and the
library are in separate subdirectories, and Linux's dynamic library
loader doesn't know where to find it. Linux will only look in a few
very specific places for the library, and ../lib is not one of them.

If you want to test the library before you formally install it, use a
command like this:

$ LD_LIBRARY_PATH=../lib ./simple1 localhost someuser hispassword

That clues the dynamic loader that ../lib should also be searched for
libraries.

Otherwise, just install the library, and the examples should run
without any jiggery-pokery.



--------------000104010408060205030901
Content-Type: text/plain; charset=us-ascii


--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw
--------------000104010408060205030901--


Reply With Quote
  #4  
Old   
Matt Dargavel
 
Posts: n/a

Default RE: Install issue on SLES-10 - 09-26-2006 , 10:06 AM




As a suggestion, try running 'ldconfig' as root and then give it another go.
Ldconfig looks in each of the directories specified in /etc/ld.so.conf
(/usr/local/lib should be in there) for shared system libraries and sets
them up ready for use.


-----Original Message-----
From: Gary Anderson [mailto:ganderson (AT) bslw (DOT) com]
Sent: 26 September 2006 15:29
To: plusplus (AT) lists (DOT) mysql.com
Subject: Re: Install issue on SLES-10

Sorry for the lack of information. I had actually run the full make, then
make install. When I tried to run make install again, the response was that
nothing needed to be done, as expected. The library was actually installed
in /usr/local/lib. Apparently it did not get on some type of configuration
list for the dynamic library loader. That is the issue I am trying to
solve.

Your suggestion of the LD_LIBRARY_PATH worked temporarily, but I need to
make that configuration permanent on the system. Do you have any
suggestions?

Warren Young wrote:

Quote:
Gary Anderson wrote:

when I try to run the examples, I get the error that libmysqlpp.so
cannot be found.


You probably haven't installed the library yet. The examples and the
library are in separate subdirectories, and Linux's dynamic library
loader doesn't know where to find it. Linux will only look in a few
very specific places for the library, and ../lib is not one of them.


If you want to test the library before you formally install it, use a
command like this:

$ LD_LIBRARY_PATH=../lib ./simple1 localhost someuser hispassword

That clues the dynamic loader that ../lib should also be searched for
libraries.

Otherwise, just install the library, and the examples should run
without any jiggery-pokery.




--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw



Reply With Quote
  #5  
Old   
Gary Anderson
 
Posts: n/a

Default Re: Install issue on SLES-10 - 09-26-2006 , 10:15 AM



--------------080108090406030105010205
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Thanks for the suggestion. I did the following:
# export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
and that seemed to fix it. I'll keep your suggestion on file for future
reference.


Matt Dargavel wrote:

Quote:
As a suggestion, try running 'ldconfig' as root and then give it another go.
Ldconfig looks in each of the directories specified in /etc/ld.so.conf
(/usr/local/lib should be in there) for shared system libraries and sets
them up ready for use.


-----Original Message-----
From: Gary Anderson [mailto:ganderson (AT) bslw (DOT) com]
Sent: 26 September 2006 15:29
To: plusplus (AT) lists (DOT) mysql.com
Subject: Re: Install issue on SLES-10

Sorry for the lack of information. I had actually run the full make, then
make install. When I tried to run make install again, the response was that
nothing needed to be done, as expected. The library was actually installed
in /usr/local/lib. Apparently it did not get on some type of configuration
list for the dynamic library loader. That is the issue I am trying to
solve.

Your suggestion of the LD_LIBRARY_PATH worked temporarily, but I need to
make that configuration permanent on the system. Do you have any
suggestions?

Warren Young wrote:



Gary Anderson wrote:



when I try to run the examples, I get the error that libmysqlpp.so
cannot be found.


You probably haven't installed the library yet. The examples and the
library are in separate subdirectories, and Linux's dynamic library
loader doesn't know where to find it. Linux will only look in a few
very specific places for the library, and ../lib is not one of them.


If you want to test the library before you formally install it, use a
command like this:

$ LD_LIBRARY_PATH=../lib ./simple1 localhost someuser hispassword

That clues the dynamic loader that ../lib should also be searched for
libraries.

Otherwise, just install the library, and the examples should run
without any jiggery-pokery.











--------------080108090406030105010205
Content-Type: text/plain; charset=us-ascii


--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw
--------------080108090406030105010205--


Reply With Quote
  #6  
Old   
Warren Young
 
Posts: n/a

Default Re: Install issue on SLES-10 - 09-26-2006 , 09:38 PM



Gary Anderson wrote:
Quote:
The library was
actually installed in /usr/local/lib. Apparently it did not get on some
type of configuration list for the dynamic library loader.
Matt's right: you almost certainly need to edit /etc/ld.so.conf to add
/usr/local/bin, and then run ldconfig. If you don't want to edit
ld.so.conf, then reconfigure MySQL++ so that it installs the library in
one of the directories already named in ld.so.conf.

--
MySQL++ Mailing List
For list archives: http://lists.mysql.com/plusplus
To unsubscribe: http://lists.mysql.com/plusplus?unsu...ie.nctu.edu.tw



Reply With Quote
Reply




Thread Tools
Display Modes

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

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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.