Huihoo CentOS Applications

来自开放百科 - 灰狐
(版本间的差异)
跳转到: 导航, 搜索
(Related Links)
 
(未显示1个用户的22个中间版本)
第6行: 第6行:
  
 
在安装软件包时,请先查看 Add/Remove Software 所提供的软件包列表是否包含你所需要的软件
 
在安装软件包时,请先查看 Add/Remove Software 所提供的软件包列表是否包含你所需要的软件
 +
==Tux==
 +
/etc/init.d/tux start // 正常启动
 +
/etc/init.d/tux stop // 导致关机, 在五舟服务器SF3150上
 
==Java==
 
==Java==
 
下载 bin 二进制文件进行安装
 
下载 bin 二进制文件进行安装
第32行: 第35行:
 
*Tomcat
 
*Tomcat
 
==C,C++==
 
==C,C++==
 +
===GCC===
 +
yum list gcc*
 +
Available Packages
 +
gcc.i386                                4.1.1-52.el5.2        updates       
 +
gcc-c++.i386                            4.1.1-52.el5.2        updates       
 +
gcc-gfortran.i386                        4.1.1-52.el5.2        updates       
 +
gcc-gnat.i386                            4.1.1-52.el5.2        updates       
 +
gcc-java.i386                            4.1.1-52.el5.2        updates       
 +
gcc-objc.i386                            4.1.1-52.el5.2        updates       
 +
gcc-objc++.i386                          4.1.1-52.el5.2        updates         
 +
yum install gcc.i386
 +
yum install gcc-c++.i386
 +
....
 
Emacs 的安装
 
Emacs 的安装
  
第47行: 第63行:
 
  yum install libstdc++.so.5 :)
 
  yum install libstdc++.so.5 :)
 
==Ruby on Rails==
 
==Ruby on Rails==
 +
可参考 [[Ruby on Rails on Debian]]
 +
目前 CentOS 5 提供的 Ruby 是 1.8.5-5.el5, 要安装 1.8.6 src  可从 http://download.huihoo.com/ruby/ruby-1.8.6.tar.gz 下载
  
 +
[http://wiki.rubyonrails.org/rails/pages/Rails+on+CentOS+4.3+with+Apache+and+FastCGI+Simply Rails on CentOS 4.3 with Apache and FastCGI Simply]
 +
# yum install httpd-devel
 +
Install FastCGI
 +
wget http://www.fastcgi.com/dist/fcgi-2.4.0.tar.gz
 +
tar -xzf fcgi-2.4.0.tar.gz
 +
cd fcgi-2.4.0
 +
./configure
 +
make
 +
make install
 +
cd ../
 +
Install mod_fcgid
 +
wget http://nchc.dl.sourceforge.net/sourceforge/mod-fcgid/mod_fcgid.2.2.tgz
 +
tar -xzf mod_fcgid.2.2.tgz
 +
cd mod_fcgid.2.2
 +
vi Makefile and Change top_dir to:
 +
top_dir = /usr/lib/httpd
 +
Uncomment #INCLUDES and change to
 +
INCLUDES=-I /usr/include/httpd -I /usr/include/apr-0
 +
make
 +
make install
 +
cd ../
 +
Install Rails, FastCGI, and Mysql
 +
gem install rails --include-dependencies
 +
gem install fcgi
 +
gem install mysql -- --with-mysql-config=/usr/bin/mysql_config
 +
        Select 3 option – mysql 2.7 (ruby)
 +
vi /etc/ld.so.conf
 +
  Add line:  /usr/local/lib
 +
执行 /sbin/ldconfig
 +
Create Test
 +
mkdir /var/www/rails
 +
cd /var/www/rails/
 +
rails cookbook
 +
Set Permissions on Test Application
 +
chgrp -R apache cookbook/
 +
chmod -R g+r cookbook/
 +
chmod -R g+w cookbook/log/
 +
chmod -R g+w cookbook/tmp/
 +
find /var/www/rails/cookbook/ -type d -exec chmod g+x {} \;
 +
Configure Apache
 +
vi /etc/httpd/conf.d/fcgid.conf
 +
Insert the following:
 +
 +
LoadModule fcgid_module /usr/lib/httpd/modules/mod_fcgid.so
 +
 +
<IfModule mod_fcgid.c>
 +
    SocketPath /tmp/fcgid_sock/
 +
    AddHandler fcgid-script .fcgi
 +
</IfModule>
 +
vi /etc/httpd/conf.d/hosts.conf
 +
Insert the following:
 +
 +
<VirtualHost *:80>
 +
    SetEnv RAILS_ENV development
 +
    ServerName dnsnameoripaddress
 +
    DocumentRoot /var/www/rails/cookbook/public/
 +
    ErrorLog /var/www/rails/cookbook/log/apache.log
 +
 +
    <Directory /var/www/rails/cookbook/public/>
 +
      Options ExecCGI FollowSymLinks
 +
      AddHandler fcgid-script .fcgi
 +
      AllowOverride all
 +
      Order allow,deny
 +
      Allow from all
 +
    </Directory>
 +
</VirtualHost>
 +
若没有fcgid.conf 和 hosts.conf 文件可将上面两个配置信息放在 conf/httpd.conf
 +
 
 +
vi /var/www/rails/cookbook/public/.htaccess 注意这里两处改变非常重要
 +
Change: RewriteRule ^(.*)$ dispatch.cgi [QSA,L] to RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
 +
change:AddHandler fastcgi-script .fcgi to AddHandler fcgid-script .fcgi
 +
运行
 +
cd /var/www/rails/cookbook/
 +
ruby script/generate controller MyTest
 +
可能出现的问题: undefined method `gem' for main:Object, 可能是gem的版本太低,升级一下 gem
 +
# gem update --system
 +
 +
vi app/controllers/my_test_controller.rb
 +
Change file to read:
 +
 +
class MyTestController < ApplicationController
 +
    def index
 +
      render :text => "Hello World!"
 +
    end
 +
end
 +
 +
/sbin/service httpd start
 +
http://localhost/MyTest
 +
可能出现的问题: [emerg] (17)File exists: mod_fcgid: Can't create share memory for size %z
 +
Try put this setting to the global apache config.
 +
SharememPath /tmp/fcgidshm
 +
[error] (13)Permission denied: mod_fcgid: couldn't bind unix domain socket /tmp/fcgid_sock/29757.223
 +
[Wed Dec 19 10:19:06 2007] [warn] (13)Permission denied: mod_fcgid: spawn process /var/www/rails/cookbook/public/dispatch.fcgi error
 +
chmod 555 /tmp/fcgid_sock
 +
==LAMP==
 +
有关Python,PHP,Perl应用包的安装、使用
 +
yum install httpd
 +
yum install httpd-devel
 +
===Subversion & Trac===
 +
基于 Apache 2.2.3 + Subversion 1.4.2 + Python 2.4.3 + SQLite 3.3.6 + Trac 0.10.4 架设。
 +
 +
参考: http://www.sofee.cn/blog/2007/06/19/54/
 
==Database==
 
==Database==
 
通过系统提供的 Add/Remove Software 进行安装, 选杂 Server 的类别或通过 yum 安装
 
通过系统提供的 Add/Remove Software 进行安装, 选杂 Server 的类别或通过 yum 安装
第61行: 第181行:
 
Oracle Database 10g Express Edition requires 1004 MB of swap space.  This system has 988 MB of swap space.
 
Oracle Database 10g Express Edition requires 1004 MB of swap space.  This system has 988 MB of swap space.
  
 
+
#/etc/init.d/oracle-xe configure
 +
http://127.0.0.1:8080/apex
 
*Berkeley DB
 
*Berkeley DB
  
第76行: 第197行:
 
*NetBeans
 
*NetBeans
 
*Eclipse
 
*Eclipse
 
+
==Management==
 +
*[[Nagios on CentOS]]
 
==Freeware==
 
==Freeware==
 
*wget -  
 
*wget -  
 
+
==Mail==
 +
*[[Installing Horde Groupware Webmail Edition on CentOS 5]]
 
==Related Links==
 
==Related Links==
 
*http://wiki.centos.org/HowTos
 
*http://wiki.centos.org/HowTos
 +
 +
{{comment}}
 +
 +
[[Category:CentOS]]
 +
[[Category:Huihoo]]

2010年11月11日 (四) 04:23的最后版本

Huihoo CentOS Applications 为 CentOS 应用软件包的安装、版本更新、迁移提供支持。

Packages rebuilt for CentOS - http://centos.karan.org/

以下信息针对 CentOS 5 版本

在安装软件包时,请先查看 Add/Remove Software 所提供的软件包列表是否包含你所需要的软件

目录

[编辑] Tux

/etc/init.d/tux start // 正常启动
/etc/init.d/tux stop // 导致关机, 在五舟服务器SF3150上

[编辑] Java

下载 bin 二进制文件进行安装

wget http://download.huihoo.com/java/javase/5.0/linux/jdk-1_5_0_07-linux-i586.bin
./jdk-1_5_0_07-linux-i586.bin

或安装 RPM 保 Java RPM Packages: http://mirrors.dotsrc.org/jpackage/5.0/generic/

http://mirrors.dotsrc.org/jpackage/5.0/generic/SRPMS.non-free/
#yum install alternatives
/usr/sbin/alternatives --config java // 多种 JDK 版本的切换,此功能对测试很有帮助

[编辑] Middleware

  • Apache HTTPD Server
/etc/init.d/httpd start or service httpd start // chkconfig httpd on
/var/www/html/
/etc/httpd/conf.d/welcome.conf
  • Tux
[root@centos init.d]# /etc/init.d/tux start
Starting tux: Tux version: 3/0/0
/etc/tux.mime.types
 
  • GlassFish
http://download.huihoo.com/middleware/glassfish/b48/b48-glassfish-sunos_x86.jar

  • Geronimo
  • JBoss
  • Tomcat

[编辑] C,C++

[编辑] GCC

yum list gcc*
Available Packages
gcc.i386                                 4.1.1-52.el5.2         updates         
gcc-c++.i386                             4.1.1-52.el5.2         updates         
gcc-gfortran.i386                        4.1.1-52.el5.2         updates         
gcc-gnat.i386                            4.1.1-52.el5.2         updates         
gcc-java.i386                            4.1.1-52.el5.2         updates         
gcc-objc.i386                            4.1.1-52.el5.2         updates         
gcc-objc++.i386                          4.1.1-52.el5.2         updates          
yum install gcc.i386
yum install gcc-c++.i386
....

Emacs 的安装

可通过 Package Manager 安装 Emacs 和 Emacs no x , 其版本为 21.4.1

使用:

./emacs &  // 有 GUI
./emacs-nox // 没有 GUI

libstdc++.so.5: cannot open shared object file: No such file or directory

RPM resource libstdc++.so.5 http://rpm2html.osmirror.nl/libstdc++.so.5.html

rpm -q --whatprovides libstdc++.so.5
compat-libstdc++-33-3.2.3-61
yum install libstdc++.so.5 :)

[编辑] Ruby on Rails

可参考 Ruby on Rails on Debian

目前 CentOS 5 提供的 Ruby 是 1.8.5-5.el5, 要安装 1.8.6 src  可从 http://download.huihoo.com/ruby/ruby-1.8.6.tar.gz 下载 

Rails on CentOS 4.3 with Apache and FastCGI Simply

# yum install httpd-devel

Install FastCGI

wget http://www.fastcgi.com/dist/fcgi-2.4.0.tar.gz
tar -xzf fcgi-2.4.0.tar.gz
cd fcgi-2.4.0
./configure
make
make install
cd ../

Install mod_fcgid

wget http://nchc.dl.sourceforge.net/sourceforge/mod-fcgid/mod_fcgid.2.2.tgz
tar -xzf mod_fcgid.2.2.tgz
cd mod_fcgid.2.2
vi Makefile and Change top_dir to:
top_dir = /usr/lib/httpd
Uncomment #INCLUDES and change to
INCLUDES=-I /usr/include/httpd -I /usr/include/apr-0
make
make install
cd ../

Install Rails, FastCGI, and Mysql

gem install rails --include-dependencies
gem install fcgi
gem install mysql -- --with-mysql-config=/usr/bin/mysql_config
       Select 3 option – mysql 2.7 (ruby)
vi /etc/ld.so.conf
 Add line:  /usr/local/lib
执行 /sbin/ldconfig

Create Test

mkdir /var/www/rails
cd /var/www/rails/
rails cookbook

Set Permissions on Test Application

chgrp -R apache cookbook/
chmod -R g+r cookbook/
chmod -R g+w cookbook/log/
chmod -R g+w cookbook/tmp/
find /var/www/rails/cookbook/ -type d -exec chmod g+x {} \;

Configure Apache

vi /etc/httpd/conf.d/fcgid.conf
Insert the following:
LoadModule fcgid_module /usr/lib/httpd/modules/mod_fcgid.so
<IfModule mod_fcgid.c>
    SocketPath /tmp/fcgid_sock/
    AddHandler fcgid-script .fcgi
</IfModule> 

vi /etc/httpd/conf.d/hosts.conf

Insert the following:
<VirtualHost *:80>
   SetEnv RAILS_ENV development
   ServerName dnsnameoripaddress
   DocumentRoot /var/www/rails/cookbook/public/
   ErrorLog /var/www/rails/cookbook/log/apache.log
   <Directory /var/www/rails/cookbook/public/>
      Options ExecCGI FollowSymLinks
      AddHandler fcgid-script .fcgi
      AllowOverride all
      Order allow,deny
      Allow from all
   </Directory>
</VirtualHost>

若没有fcgid.conf 和 hosts.conf 文件可将上面两个配置信息放在 conf/httpd.conf

vi /var/www/rails/cookbook/public/.htaccess 注意这里两处改变非常重要

Change: RewriteRule ^(.*)$ dispatch.cgi [QSA,L] to RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
change:AddHandler fastcgi-script .fcgi to AddHandler fcgid-script .fcgi

运行

cd /var/www/rails/cookbook/
ruby script/generate controller MyTest
可能出现的问题: undefined method `gem' for main:Object, 可能是gem的版本太低,升级一下 gem
# gem update --system
vi app/controllers/my_test_controller.rb
Change file to read:
class MyTestController < ApplicationController
   def index
      render :text => "Hello World!" 
   end
end

/sbin/service httpd start

http://localhost/MyTest

可能出现的问题: [emerg] (17)File exists: mod_fcgid: Can't create share memory for size %z

Try put this setting to the global apache config.
SharememPath /tmp/fcgidshm
[error] (13)Permission denied: mod_fcgid: couldn't bind unix domain socket /tmp/fcgid_sock/29757.223

[Wed Dec 19 10:19:06 2007] [warn] (13)Permission denied: mod_fcgid: spawn process /var/www/rails/cookbook/public/dispatch.fcgi error

chmod 555 /tmp/fcgid_sock

[编辑] LAMP

有关Python,PHP,Perl应用包的安装、使用

yum install httpd
yum install httpd-devel

[编辑] Subversion & Trac

基于 Apache 2.2.3 + Subversion 1.4.2 + Python 2.4.3 + SQLite 3.3.6 + Trac 0.10.4 架设。

参考: http://www.sofee.cn/blog/2007/06/19/54/

[编辑] Database

通过系统提供的 Add/Remove Software 进行安装, 选杂 Server 的类别或通过 yum 安装

  • PostgreSQL
# yum list postgresql-server
# yum install postgresql-server
# yum list postgresql 
# yum install postgresql
  • MySQL
#yum list mysql
  • Oracle XE

Oracle Database 10g Express Edition requires 1004 MB of swap space. This system has 988 MB of swap space.

#/etc/init.d/oracle-xe configure
http://127.0.0.1:8080/apex
  • Berkeley DB

[编辑] Portal

  • Liferay
  • Apache Portal
  • SUN Portal
  • JBoss Portal

[编辑] Tools

  • Subversion
# yum  install  mod_dav_svn subversion

http://wiki.centos.org/SubVersion

  • NetBeans
  • Eclipse

[编辑] Management

[编辑] Freeware

  • wget -

[编辑] Mail

[编辑] Related Links

Comment-32x32.png

<discussion>characters_max=300</discussion>

分享您的观点
个人工具
名字空间

变换
操作
导航
工具箱