Using a custom lib path

5,399

Found it:

export LD_LIBRARY_PATH=~/lib/

Just in case one might also add:

export LD_PATH=~/lib/
export LIBPATH=~/lib/
Share:
5,399

Related videos on Youtube

DeltaMarine101
Author by

DeltaMarine101

For most of my time I do programming stuff, but I like math, too, especially if it’s got a more applied nature. I love jazz music and action-packed thrilling books, where the good guys are noble and able, but sound self-deprecating, and always think coolly and clearly. Most of all, however, I like video games with compelling atmosphere, innovative design and great eye for detail. I am best at Java, but I also have experience with C++, Python, Ruby, Visual Basic, Pascal, ActionScript and PHP. I have some idea of functional programming, too, as I’ve done some good amount of projects in Matlab and Mathematica. I prefer simpler code, but I am not too scared to go deep, if it’s the only option. My love for books and mobile devices has leaded me to making my own ebook reader: The AlbiteREADER. One can find free ebooks there, too. It’s a big thing for me, for I’ve been making the app for over four months. As far as math is concerned, I don’t like it raw, but prefer it in connection with other sciences, i.e. numerical analysis, discreet math, statistics, biomathematics, etc. I’ve done some good amount of math projects with Matlab and Mathematica. I’ve also had the chance to teach biomath as an assistant, i.e. I was responsible for the demonstrational part of the subject. In relation with that, I can say, I wrote some good quantity of Mathematica code and some lesser amount of mathematical stuff.

Updated on September 18, 2022

Comments

  • DeltaMarine101
    DeltaMarine101 almost 2 years

    I'm trying to build Android on a remote trough ssh. However, I was presented with the problem:

    prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/arm-linux-androideabi-gcc: /lib32/libc.so.6: version `GLIBC_2.11' not found (required by prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/arm-linux-androideabi-gcc)

    After looking at the libc.so.6 I saw that it was actually 2.9.

    I don't however have administrative privileges on the server. So I tried copying my libc-2.11.1.so to a folder in my home dir, say /home/users/myuser/lib/, made a symbolic link so that /home/users/myuser/lib/libc.so.6 would point to the actual so and added the lib folder to my PATH.

    However it didn't make any difference.

    Doing ldd on the mentioned elf file:

    linux-gate.so.1 =>  (0xf77a6000)
    libc.so.6 => /lib32/libc.so.6 (0xf762d000)
    /lib/ld-linux.so.2 (0xf77a7000)
    

    So it looks like the required library has a fixed path.

    Does anyone know how I could make it link to /home/users/myusers/lib/libc.so.6 instead of `/lib32/libc.so.6/

    Thanks!