2008年5月29日 星期四

Linux Command - install

/usr/bin/install -c -m 644 libuuid.a /usr/lib/libuuid.a
ranlib /usr/lib/libuuid.a
/bin/chmod 444 /usr/lib/libuuid.a

>> Whie install libpcap library. The Makefile forget to create the "/usr/local/libpcap/bin/" directory. So the procedures will fail and exit as following screen.

/usr/bin/install -c pcap-config /usr/local/libpcap/bin/pcap-config
/usr/bin/install: cannot create regular file `/usr/local/libpcap/bin/pcap-config': No such file or directory
make: *** [install] Error 1

>> We can just create the directory directly. And rerun the "make install". The procedures will success finally.
# mkdir /usr/local/libpcap/bin/
# /usr/bin/install -c pcap-config /usr/local/libpcap/bin/pcap-config
# make install ==> Successful complete the installation this time

沒有留言: