LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1736|回复: 28

郁闷的问题!!!关于BLFS安装过程中....(真的不知道标题该怎么写!)

[复制链接]
发表于 2003-5-21 18:34:37 | 显示全部楼层 |阅读模式
20030319的BLFS(就是我们翻译的那个中文版),
我每次安装,总会出现这样的情况:
A包依赖于B包,于是我先装了B包,也ldconfig了,
但是回来再装A包,还是说找不到B包。
一般都要关机放一个晚上,第二天再来才会找到!

真的不明白!真的很郁闷!:mad: :mad: :mad:
发表于 2003-5-21 19:03:54 | 显示全部楼层
主要是PKG_CONFIG_PATH有没有设置。
 楼主| 发表于 2003-5-21 19:19:51 | 显示全部楼层
那为什么过了一个晚上就好了哪??
发表于 2003-5-21 19:24:19 | 显示全部楼层
这个……你的问题太抽象了。举个例子?
 楼主| 发表于 2003-5-22 12:30:06 | 显示全部楼层
我安装了libjpeg6b后,要安装imlib,就提示找不到libjpeg
怎么弄也不好使。结果关机后第二天就好使了。
(以前装的时候也这样过)
昨天装enlightenment/fnlib,也不好使,说找不到imlib.
今天还没有试。
发表于 2003-5-22 12:50:35 | 显示全部楼层
所有的软件包在安装的时候都会检查相关的程序是不是存在,所以,你就要看一下它的configure.in脚本,如果它在那个位置找,而你的头文件不是在那个位置,就会有问题了。
一般来说,应该不会出现这样的情况的。具体问题具体分析。你是不是忘了mount proc?
 楼主| 发表于 2003-5-22 13:04:13 | 显示全部楼层
分特!我加在/etc/fstab里面了。那里就三行:
/
swap
proc
可是为什么第二天又好了呢????如果一直找不到,那我宁愿相信是我装错了,但是怎么过了一晚上就好了呢??
郁闷!语闷!!
发表于 2003-5-22 13:09:25 | 显示全部楼层
给出出错的消息和config.log
 楼主| 发表于 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, &micro) != 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
发表于 2003-5-22 13:36:30 | 显示全部楼层
运行一下ldconfig就好了,呵呵。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表