error while loading shared libraries: libpcap.so.0.6.2:

the error:
[EMAIL PROTECTED] ~]$ ns
ns: error while loading shared libraries: libpcap.so.0.6.2: cannot
open shared object file: No such file or directory

There is an error when i am trying to exec some ns simulation script.
I have just installed FedoraCore4 Linux with all packages, and then i
downloaded and installed the latest ns2.30 succesfully.
this error occured whenever i execute ns simulation:

[EMAIL PROTECTED] ~]$ ns
ns: error while loading shared libraries: libpcap.so.0.6.2: cannot
open shared object file: No such file or directory
[EMAIL PROTECTED] ~]$ ns example.tcl
ns: error while loading shared libraries: libpcap.so.0.6.2: cannot
open shared object file: No such file or directory

I have tried to use another old version ns2.26 in this FC4 system, the
same error comes out too. It seems that its not because ns but FC4.
I have googled this error, comes out only one result, it is just the
same as my error, is is in this ns maillist, but the only reply to
that mail is very simple, only one
url(http://gamma.isi.edu/pipermail/ns-users/attachments/20040221/e48d6fb7/attachment.html)
is given as the answer, but, I just can not conncet to this url!
so, i have to do it my self, i tried to do some trick by doing some ln:

[EMAIL PROTECTED] ~]$ ns
ns: error while loading shared libraries: libpcap.so.0.6.2: cannot
open shared object file: No such file or directory
[EMAIL PROTECTED] ~]$ whereis libpcap.*
libpcap: /usr/lib/libpcap.a /usr/lib/libpcap.so
[EMAIL PROTECTED] ~]$ cd /usr/lib/
[EMAIL PROTECTED] lib]$ ls -l -s -a libpcap.*
224 -rw-r--r--  1 root root 220660 2005-04-28  libpcap.a
 4 lrwxrwxrwx  1 root root     16  1月  6 11:53 libpcap.so -> libpcap.so.0.8.3
 4 lrwxrwxrwx  1 root root     16  1月  6 11:53 libpcap.so.0 -> libpcap.so.0.8.3
 4 lrwxrwxrwx  1 root root     16  1月  6 11:53 libpcap.so.0.8 ->
libpcap.so.0.8.3
160 -rwxr-xr-x  1 root root 152240 2005-04-28  libpcap.so.0.8.3
160 -rwxr-xr-x  1 root root 152240  1月 11 16:13 libpcap.so.0.8.3.backup
[EMAIL PROTECTED] lib]$ ln -s libpcap.so.0.8.3 libpcap.so.0.6.2
ln: 正在创建连至'libpcap.so.0.8.3'的符号链接'libpcap.so.0.6.2': 权限不够
[EMAIL PROTECTED] lib]$ sudo ln -s libpcap.so.0.8.3 libpcap.so.0.6.2
Password:
[EMAIL PROTECTED] lib]$ ls -l -s -a libpcap.*
224 -rw-r--r--  1 root root 220660 2005-04-28  libpcap.a
 4 lrwxrwxrwx  1 root root     16  1月  6 11:53 libpcap.so -> libpcap.so.0.8.3
 4 lrwxrwxrwx  1 root root     16  1月  6 11:53 libpcap.so.0 -> libpcap.so.0.8.3
 4 lrwxrwxrwx  1 root root     16  1月 11 17:11 libpcap.so.0.6.2 ->
libpcap.so.0.8.3
 4 lrwxrwxrwx  1 root root     16  1月  6 11:53 libpcap.so.0.8 ->
libpcap.so.0.8.3
160 -rwxr-xr-x  1 root root 152240 2005-04-28  libpcap.so.0.8.3
160 -rwxr-xr-x  1 root root 152240  1月 11 16:13 libpcap.so.0.8.3.backup
[EMAIL PROTECTED] lib]$ ns
ns: /usr/lib/libstdc++.so.5: version `CXXABI_1.2' not found (required by ns)
ns: /usr/lib/libstdc++.so.5: version `GLIBCPP_3.2' not found (required by ns)
[EMAIL PROTECTED] lib]$

So, some more errors comes out, it is not a simple puzzle, and i do
not know what to do the next step.
Will ns be ok in FC4 if i make ns with out LBNL packet capture library?
I have read part viii emulation chapter 39 of the ns manual, also i
have read configure file and make file, i find no configure option to
disable emulation function of ns, what should i do?

How to let ns run in my FC4?

Reply via email to