|

楼主 |
发表于 2003-5-22 13:20:36
|
显示全部楼层
比方说,装了imlib之后,安装fnlib:
...
checking whether we are using GNU C... (cached) yes
checking whether gcc -s accepts -g... (cached) yes
checking for imlib-config... /usr/bin/imlib-config
checking for IMLIB - version >= 1.8.0... no
*** Could not run IMLIB test program, checking why...
*** The test program compiled, but did not run. This usually means
*** that the run-time linker is not finding IMLIB or finding the wrong
*** version of IMLIB. If it is not finding IMLIB, you'll need to set your
*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point
*** to the installed location Also, make sure you have run ldconfig if that
*** is required on your system
***
*** If you have an old version installed, it is best to remove it, although
*** you may also be able to get things to work by modifying LD_LIBRARY_PATH
configure: error: *** IMLIB 1.8 not installed - please install first ***
config.log:
...
configure:1635: checking whether we are using GNU C
configure:1663: checking whether gcc -s accepts -g
configure:1737: checking for imlib-config
configure:1772: checking for IMLIB - version >= 1.8.0
configure:1855: gcc -s -o conftest -march=pentium3 -O3 -pipe -fomit-frame-pointe
r -I/usr/X11R6/include conftest.c -L/usr/lib -lImlib -ljpeg -ltiff -lungif -l
png -lz -lm -L/usr/X11R6/lib -lSM -lICE -lXext -lX11 1>&5
configure: failed program was:
#line 1796 "configure"
#include "confdefs.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <Imlib.h>
char*
my_strdup (char *str)
{
char *new_str;
if (str)
{
new_str = malloc ((strlen (str) + 1) * sizeof(char));
strcpy (new_str, str);
}
else
new_str = NULL;
return new_str;
}
int main ()
{
int major, minor, micro;
char *tmp_version;
system ("touch conf.imlibtest");
/* HP/UX 9 (%@#!) writes to sscanf strings */
tmp_version = my_strdup("1.8.0");
if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
printf("%s, bad version string\n", "1.8.0");
exit(1);
}
if ((1 > major) ||
((1 == major) && (9 > minor)) ||
((1 == major) && (9 == minor) &&
(14 >= micro)))
{
return 0;
}
else
{
printf("\n*** 'imlib-config --version' returned %d.%d, but the minimum ver
sion\n", 1, 9);
printf("*** of IMLIB required is %d.%d. If imlib-config is correct, then i
t is\n", major, minor);
printf("*** best to upgrade to the required version.\n");
printf("*** If imlib-config was wrong, set the environment variable IMLIB_
CONFIG\n");
printf("*** to point to the correct copy of imlib-config, and remove the f
ile\n");
printf("*** config.cache before re-running configure\n");
return 1;
}
}
configure:1899: gcc -s -o conftest -march=pentium3 -O3 -pipe -fomit-frame-pointe
r -I/usr/X11R6/include conftest.c -L/usr/lib -lImlib -ljpeg -ltiff -lungif -l
png -lz -lm -L/usr/X11R6/lib -lSM -lICE -lXext -lX11 1>&5 |
|