Alexandre Racine wrote:

 > ...
> lrwxrwxrwx 1 root root 36 Jan 25 10:10 /usr/lib/liblapack.so.3 -> 
> /usr/lib/lapack/atlas/liblapack.so.0.0.0
> 
> Starting the program again, I get this:
> 
> $ ./smartpca
> ./smartpca: error while loading shared libraries: liblapack.so.3: cannot 
> open shared object file: No such file or directory

   Are you sure it does exactly that?
   I cannot reproduce it. Whether I link /usr/lib/liblapack.so.3 to 
/usr/lib/liblapack.so.0 or directly to 
/usr/lib/lapack/atlas/liblapack.so.0.0.0 as you did, I get libblas.so.3, 
not liblapack.so.3 not found. After linking /usr/lib/libblas.so.3 to 
/usr/lib/libblas.so.0 I start smartpca without problem:

 > ./smartpca
./smartpca: error while loading shared libraries: liblapack.so.3: cannot 
open shared object file: No such file or directory
 > sudo ln -s /usr/lib/liblapack.so.0 /usr/lib/liblapack.so.3
 > ./smartpca
./smartpca: error while loading shared libraries: libblas.so.3: cannot 
open shared object file: No such file or directory
 > sudo ln -s /usr/lib/libblas.so.0 /usr/lib/libblas.so.3
 > ./smartpca
no parameters
## smartpca version: 7521

   You can avoid such ugly symbolic links, if you compile the sources. 
With the help of `pkg-config --libs lapack` I adapted Makefile.alt to 
the attached Makefile.gcc4 and compiled the sources:

 > make -f Makefile.gcc4 all

   For now I don't feel like to pay those extra ten to sixty minutes to 
write something like a first version of an ebuild, but I thing that it 
might be quite straitforward.
   With best regards
				Honza Macháček