|
EMBOSS FAQ (Frequently Asked Questions)
Part:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
(Continued from previous part...)
But this says:
There is no "configure" script for Libpng-1.2.5. Instead, please
copy the appropriate makefile for your system from the "scripts"
directory. Read the INSTALL file for more details.
so copy the file, for example "cp scripts/makefile.linux makefile"
##
## edit makefile, change prefix to be /home/joe/local
## and any other places - some files point to ../zlib
## others use /usr/local/lib and /usr/local/include
##
## on HP-UX this is trickier. CFLAGS has to match zlib
##
make
make install
cd ..
cd gd
##
## for 1.x versions, edit Makefile, change:
## INCLUDEDIRS, LIBDIRS, INSTALL_LIB, INSTALL_INCLUDE, INSTALL_BIN
## all /usr/local
## to /home/joe/local
##
## for 2.x versions, we use ./configure (hurrah!)
./configure --prefix=/home/joe/local --with-png=/home/joe/local \
--with-jpeg=/home/joe/local
make
make install
cd ..
If the gd or jpeg "make install" fails with a warning about the "bin"
"man" or "man/man1" directory, you need to create it by hand (see above).
To compile with the local version your EMBOSS ./configure line should now
read:-
./configure --with-pngdriver=/home/joe/local
This will look for the graphics libraries in your local
installation under /home/joe/local instead of a system-wide location
configure keeps a copy of the previous settings. You may need to delete
file config.cache and config.status if configure has been run before.
Q) When installing EMBOSS recently I get a load of errors due to
libraries not found.
The main problem is that I have an old version of
libz but no lib gd in my system libraries and EMBOSS looks there first
to try to locate these libraries. I have the correct versions installed
elsewhere.
Deleting -lgd -lz -lpng from CFLAGS in the ajax directory Makefile works
but is an ugly solution and not really ideal.
Are there any suggestions for setting the library search path or am I
missing something really obvious?
A) There are the
--without-pngdriver
and
--with-pngdriver=dir
flags. Did you try them? If the libraries are in /opt/png/lib then
set "dir" to /opt/png i.e. one level above the "lib" directory.
(Continued on next part...)
Part:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|