ubuntu上rails环境安装

# pcre-devel
# zlib-devel
# bzip2-devel
cp doc/sysconfig.lighttpd /etc/sysconfig/lighttpd
mkdir /etc/lighttpd
cp doc/lighttpd.conf /etc/lighttpd/lighttpd.conf
cp doc/rc.lighttpd.redhat /etc/init.d/lighttpd
配置文件很直观明了,一般只要把server.document-root、server.errorlog、accesslog.filename改成你的实际目录和文件名字就可以了。

$ sbin/lighttpd -f lighttpd.conf # 启动lighttpd服务
$ ps aux   grep lighttpd
www 15403 0.0 0.9 2860 1148 ? S 00:15 0:00 sbin/lighttpd -f

缺少openssl:
sudo apt-get install openssl
sudo apt-get install libssl-dev
sudo apt-get install libssl0.9.8
到原先安裝ruby 的source目錄
cd ext/openssl
ruby extconf.rb
make
make install
sudo apt-get install libopenssl-ruby1.8



还有:
sudo apt-get install libmysqlclient15-dev(注意是数字15)
安装mysql适配器前要用到这个。

还有就是要找好源


感觉ubuntu还是那样的不爽。
可惜red hat不能安装。

subversion配置
1、安装

$ sudo apt-get install subversion

$ sudo apt-get install libapache2-svn
2、创建 SVN 仓库

$ sudo mkdir /home/svn

$ cd /home/svn

$ sudo mkdir myproject

$ sudo svnadmin create /home/svn/myproject

$ sudo chmod 777 * -R
3、配置svnserve.conf

去掉下面的注释

[general]

anon-access = read
      auth-access = write

password-db = passwd

去掉passwd中的两行注释

[users]
      harry = harryssecret
      sally = sallyssecret
5、起动服务

svnserve -d --foreground -r /home/svn
6、访问url

svn://127.0.0.1/myproject

你可能感兴趣的:(SVN,ubuntu,lighttpd,subversion,Rails)