Directfb 에서 파일 컴파일 후 실행 시 발생한 문제

이석원의 이미지

http://www.directfb.org/index.php?path=Main%2FDownloads&page=1

위 site에서 DirectFB-examples-0.9.25를 받아서

PKG_CONFIG_PATH를 directfb.pc가 있는 곳으로 설정을 해서

./configure를 했더니 잘 됐습니다.

그래서 make를 했더니 또 잘 됐습니다.

그리고 root계정으로 make install을 하라고 해서 했더니 잘 됐습니다.

그리고 /src 폴더에 컴파일된 예제 파일들을 실행시켜 보았습니다.

예를 들어서 df_andi파일을 실행한다고 하면

./df_andi

이렇게 했더니

[root@Death src]# ./df_andi
./df_andi: error while loading shared libraries: libdirectfb-1.0.so.0: cannot open shared object file: No such file or directory

이렇게 문제가 발생했습니다.

libdirectfb-1.0.so.0 파일이 뭔가 싶어서 찾아가 봤습니다.

/usr/local/lib에

lrwxrwxrwx 1 root root 22 Jan 9 17:00 libdirect-1.0.so.0 -> libdirect-1.0.so.0.0.0
-rwxr-xr-x 1 root root 82406 Jan 9 17:00 libdirect-1.0.so.0.0.0

이렇게 되어 있었습니다..

뭔가 싶어서 실행시켜 봤더니....이렇게 나왔습니다..

[e_s_w@Death lib]$ ./libdirectfb-1.0.so.0.0.0
Segmentation fault

[e_s_w@Death lib]$ ./libdirectfb-1.0.so.0
Segmentation fault

[e_s_w@Death lib]$

이제 어쩌죠....뭐가 잘 못 되서 실행이 안되는 것일까요...

dalgarak의 이미지

/usr/local/lib 에 libdirectfb-1.0.so.0.0.0 파일이 있다면, 다음을 통해 실행을 시켜보십시오.

LD_PRELOAD_PATH=/usr/local/lib ./df_andi

귀찮으시다면, /etc/ld.so.conf 에 /usr/local/lib이 포함되어 있는지 확인하시고, 없으면 추가 후 ldconfig를 실행시켜주세요.
(ldconfig에 대한 사항은 man 8 ldconfig 를 보세요.)

라이브러리 링킹에 관련된 사항을 찾아보시면 좋을듯 합니다.

----
:LOL:

http://luna.onionmixer.net
http://lunapapa.egloos.com

uuzazuk의 이미지

앗... 같은 문제 였는데 감사합니다.. ^^

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.