顯示具有 Linux-ubuntu相關 標籤的文章。 顯示所有文章
顯示具有 Linux-ubuntu相關 標籤的文章。 顯示所有文章

2008年8月2日 星期六

ubuntu 沒有standard Lib and zlib

當make code 的時候遇到
error: zlib.h: No such file or directory

可以下
sudo apt-get install zlib1g-dev libssl-dev

應該是安裝zlib吧
========================================
另外Ubuntu 中默認是沒有 gcc c 編譯器的
所以在make 時候 會找不到stdio.h 一些標準c的函式庫
只要安裝一下就可以了

sudo apt-get install g++ gcc make automake perl ========================================

ubuntu change root passsword

安裝ubuntu 後
會發現說沒辦法使用
#su - 去change 成root的權限
如果必須的話必須是使用

#sudo su -

如此才能換成root

但是如果一開始就給root 一個固定的密碼的話

[root@XXX]#passwd
Enter new UNIX password:

Retype new UNIX password:

passwd: password updated successfully

以後就可以直接使用su -了

2008年7月30日 星期三

ubuntu make menuconfig

ubuntu 如果執行make menuconfig
會產生下面的錯誤


>>Unable to find the Ncurses libraries
>>You must have Ncurses installed in order
>>to use 'make menuconfig'

經過google大神指導只要下以下的command 就ok了
雖然畫面還是會醜醜的= = 加減用囉

apt-get install libncurses5-dev

2008年6月3日 星期二

Ubuntu install LAMP

Ubuntu install LAMP

$ sudo apt-get install mysql-server
$ sudo apt-get install apache2
$ sudo apt-get install php5
$ sudo apt-get install libapache2-mod-auth-mysql
$ sudo apt-get install php5-mysql

$ sudo apt-get install phpmyadmin
$ mysqladmin -u root password XXX

/var/lib/mysql
/var/www
etc/apache2/apache2.conf