论坛首页 编程语言技术论坛

在Linux平台上安装和配置Ruby on Rails详解

浏览 132900 次
该帖已经被评为良好帖
作者 正文
   发表时间:2007-07-22  
liyu212 写道
编译mysql-ruby 是提示找不到mysql.o 文件??


我也是啊!

ruby extconf.rb --with-mysql-dir=/opt/mysql5
make && make install
注意--with-mysql-dir应该指向MySQL数据库的安装路径

robin的mysql路径是:/opt/mysql5

我的mysql是yum -y install mysql-server  安装的,那么这个路径应该是哪里呢?

谢谢!
0 请登录后投票
   发表时间:2007-07-22  
最简单的配置如下:
$HTTP["host"] == "www.xxx.com" {
server.document-root = "/yourrails/public"
server.error-handler-404 = "/dispatch.fcgi"
fastcgi.server = (".fcgi" =>
    ("localhost" =>
      ("min-procs" => 10,
       "max-procs" => 10,
       "socket" => "/tmp/lighttpd/socket/rails.socket",
       "bin-path" => "/yourrails/public/dispatch.fcgi",
       "bin-environment" => ("RAILS_ENV" => "production")
      )
    )
)
}
这一段是自己新建的吗?

原文件中:
server.document-root        = "/www/pages/" 要注释掉吗?
另外不是很清楚yourrails是指哪里?

0 请登录后投票
   发表时间:2007-07-22  
robbin 写道
/etc/lighttpd/lighttpd.conf


请问
server.error-handler-404 = "/dispatch.fcgi"
"socket" => "/tmp/lighttpd/socket/rails.socket",
"bin-path" => "/yourrails/public/dispatch.fcgi",

这些文件都需要自己建好吗?
0 请登录后投票
   发表时间:2007-07-22  
cd tar xzvf ImageMagick-6.2.9

似乎有些笔误
0 请登录后投票
   发表时间:2007-07-22  
apolloshu 写道
在安装RMagick的时候遇上
configure: error: Cant install RMagick. Cant find magick-config or Graphics-magick-config program.

这个到底是怎么回事啊


centos上按照 本文安装也出现同样问题。
0 请登录后投票
论坛首页 编程语言技术版

跳转论坛:
Global site tag (gtag.js) - Google Analytics