« NAMM show 2006 KORG RADIAS/RADIAS-R | メイン | 技術のライブドア »

Debian サーバ 初心者 メモ

--------------------------------------
Q.現在のランレベルについて知りたい
A.
/etc/inittab にあり他のLinuxだと3がテキスト、
5がグラフィカルだけど、Debiaにはそういう概念がない。
デフォルト設定で、2になっている。

自分で入れた apacheを自動起動したい
#cd /etc/rc2.d/
#rm S91apache2
#ln -s /usr/local/apache/bin/apachectl S91apache


--------------------------------------
Q.emacs でphp-modeにならない
A.
1.apt-cacheで関連するパッケージがあるか探す
# apt-cache search php | grep lisp
The following NEW packages will be installed:
php-elisp
php-elispがあるのがわかる

2.php-elispをインストール
#apt-get install php-elisp


--------------------------------------
Q.ソースからphpをいれるときに --with-mysql でabortする
A.
関連する libmysqlclient**-dev を入れてみてみてください。
wes:~# apt-cache search libmysqlclient
libmysqlclient10 - LGPL-licensed client library for MySQL databases
libmysqlclient10-dev - LGPL-licensed client development files for MySQL databases
libmysqlclient12 - mysql database client library
libmysqlclient12-dev - mysql database development files
libmysqlclient14 - mysql database client library
libmysqlclient14-dev - mysql database development files

# apt-get install libmysqlclient10-dev


--------------------------------------
Q.ソースからphpをいれるときに以下のエラーがでる
configure: error: Couldn't find xml2-config please install the libxml2 and libxml2-devel packages
A.
以下をインストールすればよさげです
# apt-get install libxml2 libxml2-dev libxml2-doc

というか、開発者は、とりあえず以下をインストールしておけば
はまることが少ないかもしれません。
gcc
make
libc6-dev
nmap
flex
automake
bison
libxml2-dev


--------------------------------------
Q.とりあえず、時刻のずれを調整したい
A.
ntpdateで取得してください
# apt-get install ntpdate
# ntpdate clock.nc.fukuoka-u.ac.jp
1 Feb 16:45:20 ntpdate[7283]: adjust time server 133.100.9.2 offset 0.138767 sec


--------------------------------------
Q.Mysqlを入れたい
A.
1.安定版だと、現状は 4.0.24 です。

# apt-get install mysql-server
Setting up mysql-common (4.0.24-10sarge1) ...
Setting up libmysqlclient12 (4.0.24-10sarge1) ...
Setting up libnet-daemon-perl (0.38-1) ...
Setting up libplrpc-perl (0.2017-1) ...
Setting up libdbi-perl (1.46-6) ...
Setting up libdbd-mysql-perl (2.9006-1) ...
Setting up mysql-client (4.0.24-10sarge1) ...
Setting up mysql-server (4.0.24-10sarge1) ...

2.違うバージョンを入れたい
apt-cache search mysql-server で探してみます。

# apt-cache search mysql-server
mysql-server - mysql database server binaries
mysql-server-4.1 - mysql database server binaries
scoop - Web-based collaborative media application
webmin-mysql - mysql-server control module for webmin
phpbb2-conf-mysql - Automatic configurator for phpbb2 on MySQL database

mysql-server-4.1という新しいのがあるので
そっちをいれてみる。

# apt-get install mysql-server-4.1
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
(インストールされるパッケージ)
libmysqlclient14 mysql-client-4.1 mysql-common-4.1
Suggested packages:
(これも入れたほうがよさげだよ)
mysql-doc-4.1
Recommended packages:
(こいつもお勧めだべ)
libmysqlclient14-dev
The following packages will be REMOVED:
(こいつらがいたら消したれ)
mysql-client mysql-common mysql-server
The following NEW packages will be installed:
(結局こんな感じで、いれるべさどう?)
libmysqlclient14 mysql-client-4.1 mysql-common-4.1 mysql-server-4.1
0 upgraded, 4 newly installed, 3 to remove and 10 not upgraded.
Need to get 16.8MB of archives.
After unpacking 26.0MB of additional disk space will be used.


--------------------------------------
Q.日本語環境を整えないとね
A.
rootでlocaleを追加して
#dpkg-reconfigure locales
[*] ja_JP.EUC-JP EUC-JP
[*] ja_JP.UTF-8 UTF-8

ユーザで環境を設定します
$user-ja-conf

--------------------------------------
Q.magickwand 付のphpを入れたい

A.ImageMagickをソースから入れて
--enable-shared つきでconfigureすると簡単に入ります。

$ tar -zxvf ImageMagick.x.x.x.tar.gz
$ cdImageMagick.x.x.x
$ ./configure --enable-shared
$ make
# make install

特にライブラリーをいれなくても、jpg,pngは
変換できるようです。

-------------------------------------------------------------------------
Shared libraries --enable-shared=yes yes
Static libraries --enable-static=yes yes
Module support --with-modules=no no
GNU ld --with-gnu-ld=yes yes
Quantum depth --with-quantum-depth=16 16

Delegate Configuration:
BZLIB --with-bzlib=yes no
DPS --with-dps=yes no
FlashPIX --with-fpx=no no
FreeType 2.0 --with-ttf=yes yes
GhostPCL None pcl6 (unknown)
Ghostscript None gs (unknown)
Ghostscript fonts --with-gs-font-dir=default none
Ghostscript lib --with-gslib=no no
Graphviz --with-gvc=yes no
JBIG --with-jbig=yes no
JPEG v1 --with-jpeg=yes yes
JPEG-2000 --with-jp2=yes no
LCMS --with-lcms=yes no
Magick++ --with-magick-plus-plus=yes yes
PERL --with-perl=yes /usr/bin/perl
PNG --with-png=yes yes
TIFF --with-tiff=yes no
Windows fonts --with-windows-font-dir= none
WMF --with-wmf=yes no
X11 --with-x= no
XML --with-xml=yes yes
ZLIB --with-zlib=yes yes


MagickWand(マジックワンド)自体の組み込みは
以下のサイトが、参考になります。

http://kashinya.com/blog/archives/cat17/

こんなコンパイルオプションがよさげです。
./configure --with-apxs=/usr/local/apache/bin/apxs
--enable-mbstring --enable-mbstr-enc-trans --enable-mbregex
--enable-exif --with-mysql --with-gd --with-jpeg-dir=/usr/lib
--with-zlib-dir=/usr/lib --with-png-dir=/usr/lib
--with-magickwand=/usr/local

thx > ats

Author: yoshimax Date: 2006年2月 1日 17:29 | | Comment (1) | Trackback (0) | Bookmark: このエントリーを含むはてなブックマーク このエントリーをはてなブックマークに追加 Save This Page この記事をクリップ! このエントリーを含むはてなブックマーク

トラックバック

このエントリーのトラックバックURL:
http://www.de4u.net/mt41/mt-tb.cgi/1143

コメント (1)

I remember my first time on this website. My friend and I were looking for something totally new, something we haven’t read or heard about. We were so tired of college, and didn’t have too much time to go out. And we found this site, and now we come ever day to read some cool information or to discuss something with other people. It’s interesting to hear different points of view!

コメントする

About

2006年2月 1日 17:29に投稿されたエントリーのページです。

ひとつ前の投稿は「NAMM show 2006 KORG RADIAS/RADIAS-R」です。

次の投稿は「技術のライブドア」です。

他にも多くのエントリーがあります。メインページアーカイブページも見てください。

Technorati

Technorati search

» ここにリンクしているブログ

2008年5月

        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31

最近のコメント

アーカイブ

Powered by
Movable Type 4.1