Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 12-20-2003, 07:53 AM   #1
LQ Newbie
Registered: Oct 2003
Posts: 9

Rep: Reputation: 0
How to share library

Hi linux gurus,

I have a problem. I installed the cgicc-3.2.1 library in the directory /home/user_name/cgiBooth at my internet provider. I'm able to use it in this way:

> g++ -o ex01.cgi -I/home/user_name/cgiBooth/include example.cpp /home/user_name/cgiBooth/lib/libcgicc.a

and all is OK, size of the program is about 1MB. The script runs on my website. It was static linking of that library.

When I compile it with dynamic linking

> g++ -o ex01.cgi -I/home/user_name/cgiBooth/include example.cpp -L/home/user_name/cgiBooth/lib -lcgicc

the size of the program is about 50kB and the server displayes an error 500 - Internal Server error.

I have only 50MB space at him. I'd like only to share this library. Is there any possibility to solve this problem. The same problem is when I make my own library.

On my home computer I'm alo administrator, so there are no
problems to share library and to run smaller programs on my Apache server.

Tank you in advance and best regards,

Old 12-22-2003, 12:51 PM   #2
Registered: Oct 2002
Location: Curitiba - Brazil
Distribution: Conectiva
Posts: 334

Rep: Reputation: 30
Try to check if your executableis finding the library in the system:

# ldd ex01.cgi
Old 12-24-2003, 02:12 AM   #3
LQ Newbie
Registered: Oct 2003
Posts: 9

Original Poster
Rep: Reputation: 0
Hi vladkrack,

I did the test of course. I'm not authorized at my host to set path to the library in the standard way. I can only do changes in my directory /home/user_name. So the program cannot find the library.

Thanks cgifalcon


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
can't mount samba share and then write to the share calbazon Linux - Software 8 10-10-2010 01:35 AM
adding a bulit in library to my library lg3 Linux - Software 1 10-17-2004 08:19 AM
Simple Samba Setup, Share & Not Share timmywo Linux - Software 4 07-30-2004 07:27 AM
howto compile bin with my library using all-static and shared linked standart library stpg Programming 4 06-29-2004 04:20 AM
what is the function library of the basic graphics library in rethat9.0? zerwolve Red Hat 0 04-29-2004 09:18 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:04 AM.

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