LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   installing GRUB 2, grub-install problem (https://www.linuxquestions.org/questions/linux-software-2/installing-grub-2-grub-install-problem-532724/)

r00tb33r 02-26-2007 07:04 PM

installing GRUB 2, grub-install problem
 
I downloaded and compiled GRUB 2 1.95... It requires LZO decompression libraries (needed for boot images), which I downloaded, compiled and installed as well (2.02).
An example procedure to install GRUB would be:
Code:

# grub-install --root-directory=/boot /dev/hda
the output is:
Code:

/usr/local/bin/grub-mkimage: error while loading shared libraries: liblzo2.so.2: cannot open shared object file: No such file or directory
I know I am not missing that library, I am looking at it here:
Code:

/usr/local/lib/liblzo2.so.2
How do I find out where GRUB looks for that library so I can link it or copy it there...
This shouldn't be that complicated but I even tried recompiling with using
Code:

# sh configure --libdir=/usr/local/lib
which tells it where the libraries are. The configure script sees them both ways, but after compiling and installing it cannot find them for some reason... odd.
Help?

r00tb33r 02-26-2007 09:42 PM

Can someone please smack me on the face? No really.
Anyway I forgot to run ldconfig after installing the libraries... What a bummer.
I am done here.


All times are GMT -5. The time now is 07:13 PM.