sed: /usr/lib/libltdl.a를 읽을 수 없습니다. 해당 파일이나 디렉터리가 없습니다.

sed: /usr/lib/libltdl.a를 읽을 수 없습니다. 해당 파일이나 디렉터리가 없습니다.

패키지를 설치하려고 합니다.쿠투그러나 실행할 때 make그것은 말한다

justin@justin-HP-Pavilion-g6-Notebook-PC ~/Downloads/libgraph-1.0.1 $ make
Makefile:781: warning: overriding commands for target `libgraph.pc'
Makefile:333: warning: ignoring old commands for target `libgraph.pc'
make  all-recursive
make[1]: Entering directory `/home/justin/Downloads/libgraph-1.0.1'
Makefile:781: warning: overriding commands for target `libgraph.pc'
Makefile:333: warning: ignoring old commands for target `libgraph.pc'
Making all in doc
make[2]: Entering directory `/home/justin/Downloads/libgraph-1.0.1/doc'
Making all in man
make[3]: Entering directory `/home/justin/Downloads/libgraph-1.0.1/doc/man'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/justin/Downloads/libgraph-1.0.1/doc/man'
make[3]: Entering directory `/home/justin/Downloads/libgraph-1.0.1/doc'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/home/justin/Downloads/libgraph-1.0.1/doc'
make[2]: Leaving directory `/home/justin/Downloads/libgraph-1.0.1/doc'
make[2]: Entering directory `/home/justin/Downloads/libgraph-1.0.1'
Makefile:781: warning: overriding commands for target `libgraph.pc'
Makefile:333: warning: ignoring old commands for target `libgraph.pc'
/bin/bash ./libtool --mode=link gcc  -DFONTDIR=\""/usr/local/share/libgraph/Font/"\"   -o libguile-libgraph.la -rpath /usr/local/lib -version-info 0:2:0 -export-dynamic -lguile -lguile-ltdl -Wl,-Bsymbolic-functions -lcrypt -lm -ldl   guile-libgraph.lo -lgraph -lm -lSDL_image -L/usr/lib/x86_64-linux-gnu -lSDL 
grep: /usr/lib/libltdl.la: No such file or directory
sed: can't read /usr/lib/libltdl.la: No such file or directory
libtool: link: `/usr/lib/libltdl.la' is not a valid libtool archive
make[2]: *** [libguile-libgraph.la] Error 1
make[2]: Leaving directory `/home/justin/Downloads/libgraph-1.0.1'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/justin/Downloads/libgraph-1.0.1'
make: *** [all] Error 2

답변1

빌드하려면 몇 가지 추가 개발 라이브러리를 설치해야 합니다 libgraph. 이는 소스 코드 포함 INSTALL또는 파일에 언급되어야 합니다.README

내 Debian 시스템에서는 표시된 문제를 해결하려면 설치가 필요 libltdl-dev하지만 다른 개발 라이브러리가 필요할 수도 있습니다(첫 번째 오류 이후 컴파일이 중지되므로 문제가 발생할 때 모든 요구 사항이 표시되지 않습니다).

libgraph즉, Faheem Mitha가 제안한 대로 데비안 버전을 패키지로 설치했습니다 .

편집: 현재 버전의 데비안은 다음 libgraph과 같이 패키지되어 있습니다 libgraph4.

$ apt-cache show libgraph4
Package: libgraph4
Source: graphviz
Version: 2.26.3-14+deb7u2
Installed-Size: 146
Maintainer: David Claughton <[email protected]>
Architecture: amd64
Depends: libc6 (>= 2.7), libcdt4, libltdl7 (>= 2.4.2)
Conflicts: libgraphviz4
Description-en: rich set of graph drawing tools - graph library
 Graphviz is a set of graph drawing tools. See the description of the graphviz
 package for a full description.
 .

이 패키지에는 그래픽 라이브러리가 포함되어 있습니다.

답변2

마침내 오류를 해결하는 방법을 알아냈습니다. 오류를 수정하는 데 필요한 단계는 다음과 같습니다.

  1. 패키지 제거libtool
  2. libtool주어진대로 설치도서관 도구(libtool의 파일은 다음 위치에 있습니다./usr/lib/x86_64-linux-gnu
  3. 찾다~을 위한무료 소프트웨어검색창을 사용하면 ( 패키지), (스크립트 파일) ,,,, /usr/lib/x86_64-linux-gnu5개의 파일을 얻을 수 있습니다 .libltdl.alibltdl.alibltdl.solibltdl.so.7libltdl.so.7.3.0
  4. 이 5개 파일을 /usr/lib/.
  5. 완료되었습니다. 다음을 make실행한 후에는 오류가 나타나지 않습니다 libltdl.a is not a valid libtool archive.

알아채다: 여기에서는 Linux Mint 16 64비트 MATE 버전에서 이것을 시도했습니다. 다른 운영 체제에서도 이것이 사실인지 확실하지 않습니다.

관련 정보