Ubuntu上搭建ROR的运行环境时,按照robbin的文章做下来大体上比较顺利,中间安装lighttpd时出现了一点小问题,解决方法如下:
安装lighttpd前需要先安装pcre和libbz2-dev,否则configure时会失败:
tar zxvf pcre-7.9.tar.gz
cd pcre-7.9
./configure –prefix=/usr/local CFLAGS=-O1 #最后的参数是大写字母O和数字1,不是数字0和1
make && make install
apt-get install libbz2-dev
=========================
网上还有人提到相关问题:
http://blog.csdn.net/Joey_ZengChen/archive/2008/11/09/3260165.aspx
出现configure: error: C compiler cannot create executables … 安装sudo apt-get install libc6-dev.
出现configure: error: configure: error: pcre-config not found … 安装sudo apt-get install libpcre3-dev
出现configure: error: zlib-headers and/or libs where not found … 安装sudo apt-get install zlib1g-dev
出现configure: error: bzip2-headers and/or libs where not found … 安装sudo apt-get install libbz2-dev
完整的安装ROR运行环境除了robbin的 在Linux平台上安装和配置Ruby on Rails详解 外
还有一些也比较详尽:
Ubuntu 8.04部署lighttpd+ROR+MySQL实践
Install Ruby Rails Lighttpd MySQL on Ubuntu or FreeBSD
本文详细介绍了在Ubuntu上搭建Ruby on Rails (ROR) 运行环境的过程,并针对安装过程中遇到的问题提供了具体的解决方案,例如安装lighttpd时所需的依赖项等。

528

被折叠的 条评论
为什么被折叠?



