Professional Web Applications Themes

Where is zlib-1.2.2 zlib.so? - FreeBSD

Ok, I downloaded and installed zlib-1.2.2 (FreeBSD 4.10R): --------------------------------------------- asarian-host: {root} % make install cp zlib.h zconf.h /usr/local/include chmod 644 /usr/local/include/zlib.h /usr/local/include/zconf.h cp libz.a /usr/local/lib cd /usr/local/lib; chmod 755 libz.a cd /usr/local/lib; if test -f libz.so.1.2.2; then rm -f libz.so libz.so.1; ln -s libz.so.1.2.2 libz.so; ln -s libz.so.1.2.2 libz.so.1; (ldconfig || true) >/dev/null 2>&1; fi cp zlib.3 /usr/local/share/man/man3 chmod 644 /usr/local/share/man/man3/zlib.3 asarian-host: {root} % find /usr/ -name "libz.*" | xargs ls -la -r--r--r-- 1 root wheel 61898 Mar 7 2004 /usr/lib/libz.a lrwxr-xr-x 1 root wheel 9 Mar 7 2004 /usr/lib/libz.so -> libz.so.2 -r--r--r-- 1 root wheel 52108 Mar 7 2004 ...

  1. #1

    Default Where is zlib-1.2.2 zlib.so?


    Ok, I downloaded and installed zlib-1.2.2 (FreeBSD 4.10R):

    ---------------------------------------------
    asarian-host: {root} % make install
    cp zlib.h zconf.h /usr/local/include
    chmod 644 /usr/local/include/zlib.h /usr/local/include/zconf.h
    cp libz.a /usr/local/lib
    cd /usr/local/lib; chmod 755 libz.a
    cd /usr/local/lib; if test -f libz.so.1.2.2; then rm -f libz.so libz.so.1;
    ln -s libz.so.1.2.2 libz.so; ln -s libz.so.1.2.2 libz.so.1; (ldconfig ||
    true) >/dev/null 2>&1; fi
    cp zlib.3 /usr/local/share/man/man3
    chmod 644 /usr/local/share/man/man3/zlib.3

    asarian-host: {root} % find /usr/ -name "libz.*" | xargs ls -la
    -r--r--r-- 1 root wheel 61898 Mar 7 2004 /usr/lib/libz.a
    lrwxr-xr-x 1 root wheel 9 Mar 7 2004 /usr/lib/libz.so -> libz.so.2
    -r--r--r-- 1 root wheel 52108 Mar 7 2004 /usr/lib/libz.so.2
    -rwxr-xr-x 1 root wheel 74486 Mar 21 21:01 /usr/local/lib/libz.a
    ---------------------------------------------

    So, where is the new shared library, libz.so? I only see libz.a installed.

    Thanks,

    - Mark

    Mark Guest

  2. #2

    Default Re: Where is zlib-1.2.2 zlib.so?

    On Mon, Mar 21, 2005 at 08:21:17PM +0000, Mark wrote: 
     

    As you can see, it wasn't installed.

    Kris

    P.S. You've voided your warranty by doing this :-)

    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.4.0 (FreeBSD)

    iD8DBQFCP59LWry0BWjoQKURAvPoAJ4s0MnYgHJB0uUw8rFhh0 n4zkAQpwCfQv1n
    SSrPy2KoooibnCTjy1Mes8E=
    =R6lR
    -----END PGP SIGNATURE-----

    Kris Guest

  3. #3

    Default Re: Where is zlib-1.2.2 zlib.so?

    On Mon, 21 Mar 2005 20:21:17 GMT, Mark <net> wrote: 
    ^ ^
    command to make symbolic link

    (ldconfig || 
    here it is !!!
    symbolic link to libz.so.2
     

    Well is it there or not?

    --
    Kind regards
    Abu Khaled
    Abu Guest

  4. #4

    Default RE: Where is zlib-1.2.2 zlib.so?

     
    > ^ ^
    > command to make symbolic link
    >
    > (ldconfig || true) >/dev/null 2>&1; fi 
    >
    > /usr/lib/libz.so -> libz.so.2
    > ^
    > here it is !!!
    > symbolic link to libz.so.2[/ref]

    I read that entirely differently. :) I see a large conditional --
    including the creation of symlinks -- based on the existence of
    libz.so.1.2.2.
     [/ref]

    Clearly, libz.so.2 is still very much the old file (and I know this for
    certain, as I also have it elsewhere, in a jailed environment).

    So, to reiterate, where is the new shared library, libz.so? Or
    libz.so.1.2.2, for that matter. Even in the work directory of the
    untarred libz 1.2.2 tar.gz, no libz.so.1.2.2, or libz.so, exists
    after building.

    Thanks,

    - Mark

    Mark Guest

  5. #5

    Default Re: Where is zlib-1.2.2 zlib.so?

    On Tue, Mar 22, 2005 at 09:31:25AM +0000, Mark wrote:
     [/ref][/ref]
     

    You were looking in /usr/lib, not /usr/local/lib.

    Kris

    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.4.0 (FreeBSD)

    iD8DBQFCQCn/Wry0BWjoQKURAgskAKDAucE36SzMjgXUtuWT/pkHuvXQ8wCgmh/t
    lQFIEzYgzuRoo1yJrRrffp8=
    =H741
    -----END PGP SIGNATURE-----

    Kris Guest

  6. #6

    Default RE: Where is zlib-1.2.2 zlib.so?

     [/ref]

    >
    > You were looking in /usr/lib, not /usr/local/lib.[/ref]

    No, honestly, I was looking in /usr/ as a whole:

    asarian-host: {root} % find /usr/ -name "libz.*" | xargs ls -la
    -r--r--r-- 1 root wheel 61898 Mar 7 2004 /usr/lib/libz.a
    lrwxr-xr-x 1 root wheel 9 Mar 7 2004 /usr/lib/libz.so -> libz.so.2
    -r--r--r-- 1 root wheel 52108 Mar 7 2004 /usr/lib/libz.so.2
    -rwxr-xr-x 1 root wheel 74486 Mar 21 21:01 /usr/local/lib/libz.a

    It's not there.

    Thanks,

    - Mark

    Mark Guest

  7. #7

    Default Re: Where is zlib-1.2.2 zlib.so?

    On Mon, 21 Mar 2005 20:21:17 GMT, Mark <net> wrote:
     

    When you ran configure, did you tell it to generate the shared library?

    ../configure --shared

    The installation commands you listed are all based on the shared
    library existing. If it's not there, the links go nowhere.
    Logan Guest

  8. #8

    Default RE: Where is zlib-1.2.2 zlib.so?

     
    >
    > When you ran configure, did you tell it to generate the
    > shared library?
    >
    > ../configure --shared
    >
    > The installation commands you listed are all based on the shared
    > library existing. If it's not there, the links go nowhere.[/ref]

    Hmm, no, I didn't do that. :) I just ran ./configure, with no parameters.
    Doh! It is solved now.

    Thanks!

    - Mark

    Mark Guest

Similar Threads

  1. #25478 [Opn->Fbk]: zlib.output_compression = on
    By sniper@php.net in forum PHP Development
    Replies: 1
    Last Post: September 11th, 02:51 PM
  2. Php zlib and md5 problem.
    By grc in forum PHP Development
    Replies: 0
    Last Post: July 31st, 03:32 AM
  3. Zlib
    By Andreas Schrafl in forum Ruby
    Replies: 2
    Last Post: July 30th, 02:00 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139