curl-users
static compile for curl?
Date: Mon, 14 Aug 2000 20:28:41 -0400
Hello Troy, Daniel
Although I succeed with the LD_LIBRARY_PATH options to execute curl from
the shell, I am getting into trouble when I execute curl from within a
PHP script. Even if I try to create the env variable with putenv, curl
is not working from the script.
So, I guess I have to try the static compile. And what is the easiest
way to create a standalone exec with all the embedded libraries..
I tried ./configure --enable-static=/whatever
and it still generate a small program with linkage at runtime.
Claude
Troy Engel wrote:
>
> Daniel Stenberg wrote:
> >
> > ... which will make '/tmp' to get prepended to all the install path names. So
> > if you run './configure --prefix=/u/me' and then the install line as above,
> > it'll try to install all the files in the /tmp/u/me/ directory tree.
>
> I just thought of something -- doesn't he need to compile with some sort
> of 'static' flag? If he tries to install curl libs to /tmp/foobar/lib,
> the binary will never find them unless he always sets LD_LIBRARY_PATH
> (which, if I understand the original intent, will be CGIs all the
> time). The only nice way is for his ISP to install the libs into a
> system path.
>
> I would think a static compile to make life easier would be the
> ticket....
>
> -te
>
> --
> Troy Engel :: KeyID DF3D5207
> Perl is just another tool in the Unix toolbox. Perl does one thing,
> and it does it well: it gets out of your face. - Larry Wall
Received on 2000-08-15