473,385 Members | 1,769 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Forcing Specified Libraries

I am not a C programmer. I've read a bit here and there and produced a
"Hello, World" program or two, but I've never gotten into what actually
happens with the ./configure && make && make install process.

I am producing a project that will go on a CD and NOT install on any system.
In other words, anything program files will be run directly from the CD.
I've had no problem using Java by putting it directly on the CD and using a
bash script (this is in Linux) to run any Java classes.

I'm having problem with one C program. I've tried to compile it to create a
static binary, but even though I use "./configure --enable-static
--disable-shared", it still links against shared libraries. I'm sure any
experienced C programmers are way ahead of me by now and realize my
problem: I need to put this binary on a CD and make sure it runs using only
the resources on the CD since it could be run on a number of different
Linux distros.

So is there any way to take this binary and the libraries it uses, put them
all in one directory on the CD, use a bash script to run the program and
tell it to load from the libraries in its own directory instead of the
standard ones? In other words, to have the program and all it needs in one
directory (or with subdirectories) so I can expect it to run without
trouble on any non-exotic Linux system?

Thanks for any help on this!

Hal
Mar 15 '06 #1
1 1462
On Wednesday 15 March 2006 19:29, Hal Vaughan opined (in
<af********************@comcast.com>):
I am not a C programmer. I've read a bit here and there and produced
a "Hello, World" program or two, but I've never gotten into what
actually happens with the ./configure && make && make install process.


By the sound of it, your question is best answered in one of the Linux
groups, or one that deals with your tool chain. Certainly not here (see
<http://clc-wiki.net/wiki/Introduction_to_comp.lang.c>).

<snip OT stuff>

--
BR, Vladimir

If I could drop dead right now, I'd be the happiest man alive!
-- Samuel Goldwyn

Mar 15 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: Ritz, Bruno | last post by:
hi in java i found that when a method has a throws clause in the definition, callers must either handle the exceptions thrown by the method they are calling or "forward" the exception to the...
6
by: Doug | last post by:
Does anyone know how to force interop to use a stdcall interface on the COM objects it creates instead of the cdcall interface that is standard? This is very importiant for my project. I need to...
1
by: ulf | last post by:
Hello, After I got a FileNotFoundException in my real life CSharp code, I nailed it down to the following line: System.EnterpriseServices.ResourcePool rp = new...
1
by: Harshal | last post by:
Hello, I have a html page with 3 frames. If i specify the source for any of frames as http://www.gmail.com or http://www.hotmail.com, all frames go away and the site utilizes the full window. I...
11
by: Patrick Van Esch | last post by:
Hello, I have the following problem of principle: in writing HTML pages containing ancient greek, there are two possibilities: one is to write the unicode characters directly (encoded as two...
1
by: Les Juby | last post by:
Hi A clint has insisted we load a babbling brook sound clip to his home page but it needs to load last to avoid delays in loading images and other elements. Simply declaring it at page bottom...
4
by: Clans Of Intrigue | last post by:
Hello, this is my first post here so apologies if it's in the wrong place, inappropriate or embarrassingly stupid - please let me know :) My problem seems quite simple - I've redirected stdout to...
2
by: mz | last post by:
I have .NET frameworks 1.1 and 2.0 on the same server. I am going to create a class which I will compile as a separate DLL to be used by a number of different applications. I want the DLL to use...
2
by: kmsuzuki | last post by:
I have a Windows Server 2003 + IIS6 with both .Net 1.1 and 2.0 installed. In the past, I've had no problems using the ASP.NET tab in the IIS Manager to specify which framework version a given...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.