星期一, 九月 08, 2008

Compiling Software

1: How to compile
Software that comes in source form is often made available as a tarball-that is, it is archived into a single large file and then compressed with tar and gzip or bzip2, which often end in .tar.gz or .tar.bz2 or .tgz(contraction of .tar and .gz)

tar -xvzf kdirstat-2.2.0.tgz
tar -xvjf kdirstat-2.2.0.tar.bz2

To get a quick list of all the directories in a source tree
ls -l | grep drwx

To see what configure options come with a package
./configure --help

./configure

make (echo $PATH)

make install


the KDirStat executable is installed by default in /usr/local/kde/bin



2:How to run
<1>Running with Path Information
/usr/local/kde/bin/kdirstat

<2>Adding the Executable Directory to the Path
To make change during the current login session
export PATH = $PATH:/usr/local/kde/bin

To make the path change persist
~/.bash_profile

To make the path alteration system-wide
/etc/profile

<3>Linking to the Executable
ln -s /usr/local/kde/bin/kdirstat /usr/local/bin



3:Cleaning Up
make clean
OR
rm -rf kdirstat-2.2.0

RPM

1: Installing a New Package
rpm -ivh --force --nodeps packagename.rpm


2: Querying a Package
rpm -qa | grep -i 'name'

To find out which package a particular file belongs to
rpm -qf /dir/file

To find out the purpose of a package that is already installed
rpm -qi packagename

To find out what files are contained in a package
rpm -ql packagename

To identify information about and a list of files included in an uninstalled package
rpm -qilp packagename


3:Uninstalling a Package
rpm -e packagename


在线资料



System Management Tool
1:Webmin
http://yourservername:10000
Set the yourservername to be the name of the server as described by the Webmin installation message


2:redhat-config-packages


3:APT  non-RPM package manager used in other  distribution like Debian and Ubuntu
    Please note that these apt pages are obsolete. They were written in the days when yum didn't yet exist, when apt was the only decent dependency tool for rpm around. This has changed, you should really prefer yum over apt for rpm which is now unmaintained.
     <1>:Go to the http://freshrpms.net/apt/ to download the rpm package
     <2>:rpm -ivh
     <3>:apt-get update
     <4>:apt-get -f install
     <5>:apt-get install synaptic(Download an apt GUI manager) 

星期四, 九月 04, 2008

PHP の mbstring に関するメモ

http://www.asahi-net.or.jp/~wv7y-kmr/memo/php_mbstring.html