Tag: centos5

通过CentOS 64位在Ruby 1.9.2中安装rubygem’mysql2’时出现编译器错误

带有Ruby 1.8.7和1.9.2的CentOS 64位服务器 {{没有RVM,需要它没有RVM …目前所有Ruby1.9.2二进制文件都是ruby19并且类似地可访问,因此没有gem-path或任何类型的任何映射}}} 安装gem’mysql2’时出错… 我安装了所有依赖项,并且都是64位版本 … 所有错误都属于{./client.h:13:错误:重新定义typedef’rb_unblock_function_t’} 可能{#warning ruby​​sig.h已过时}是理由吗? 控制台捕获: #gem19 install mysql2 -v 0.2.7 — –with-mysql-dir=/usr/bin –with-mysql-config=/usr/bin/mysql_config –with-mysql-include=/usr/include/mysql Building native extensions. This could take a while… ERROR: Error installing mysql2: ERROR: Failed to build gem native extension. /usr/bin/ruby19 extconf.rb –with-mysql-dir=/usr/bin –with-mysql-config=/usr/bin/mysql_config –with-mysql-include=/usr/include/mysql checking for rb_thread_blocking_region()… no checking for mysql.h… yes checking for […]

升级后的pg_config,ruby pg,postgresql 9.0问题,centos 5

在postgresql 8.1升级到9.0之后,我发现了库依赖的问题。 Postgresql工作正常(连接,查询)。 yum list postgresql* Installed Packages postgresql.i386 9.0.0-1PGDG.el5 installed postgresql-debuginfo.i386 9.0.0-1PGDG.el5 installed postgresql-devel.i386 9.0.0-1PGDG.el5 installed postgresql-libs.i386 9.0.0-1PGDG.el5 installed postgresql-odbcng.i386 0.90.101-2.el5 installed postgresql-plruby.i386 0.5.1-5.el5 installed postgresql-server.i386 9.0.0-1PGDG.el5 install 但当我试图为ruby安装’pg’时,我收到了 gem install pg Building native extensions. This could take a while… ERROR: Error installing pg: ERROR: Failed to build gem native extension. /usr/local/bin/ruby extconf.rb checking […]