{osflash} CentOS Installation

Hi,


You need to install java a special way to make it work. I would
remove it and start over… I wrote this bash script that will do
everything:

cd /etc/yum.repos.d/
wget http://centos.karan.org/kbsingh-CentOS-Extras.repo
cd ~/
yum -y install fedora-rpmdevtools

fedora-buildrpmtree
cd /etc/yum.repos.d/
wget http://www.jpackage.org/jpackage.repo
cd ~/
wget http://www.cywh.com/linux/jdk-1_5_0_12-linux-i586.bin
wget http://mirrors.dotsrc.org/jpackage/1.7/generic/non-free/SRPMS/java-1.5.0-sun-1.5.0.12-1jpp.nosrc.rpm
cp jdk-1_5_0_12-linux-i586.bin ~/rpmbuild/SOURCES/
rpmbuild –rebuild java-1.5.0-sun-1.5.0.12-1jpp.nosrc.rpm
cd ~/rpmbuild/RPMS/i586/
(echo config gpgcheck 0; echo localinstall java-1.5.0-sun*.rpm; echo
run) > yum-cmd
yum -y shell yum-cmd
rm -f yum-cmd

cd ~/
wget http://archive.apache.org/dist/ant/binaries/apache-ant-1.7.0-bin.tar.gz
cd /usr/local/
tar -zxf ~/apache-ant-1.7.0-bin.tar.gz
mv apache-ant-1.7.0 ant
ln -s /usr/local/ant/bin/ant /usr/bin/ant
useradd myred5

echo “export JAVA_VERSION=1.5”   /root/.bash_profile
echo “export RED5_USER=myred5”   /root/.bash_profile
echo “export JAVA_VERSION=1.5”   /home/myred5/.bash_profile

echo “export RED5_USER=myred5”   /home/myred5/.bash_profile
cd ~/
wget http://dl.fancycode.com/red5/red5-0.6.2.tar.gz
cd /opt
tar zxf ~/red5-0.6.2.tar.gz
mv red5-0.6.2/ red5

cd ~/
wget http://apache.mirrors.hoobly.com/commons/fileupload/binaries/
commons-fileupload-1.2-bin.tar.gz
wget http://apache.mirrors.hoobly.com/commons/io/binaries/commons-
io-1.3.2-bin.tar.gz
tar -zxf commons-fileupload-1.2-bin.tar.gz
tar -zxf commons-io-1.3.2-bin.tar.gz

mv ~/commons-fileupload-1.2/lib/commons-fileupload-1.2.jar /opt/red5/
lib/
mv ~/commons-io-1.3.2/commons-io-1.3.2.jar /opt/red5/lib/
rm -f -r ~/commons-fileupload-1.2/
rm -f -r ~/commons-io-1.3.2/
echo “commons-fileupload-1.2.jar” >> /opt/red5/lib/library.properties
echo “commons-fileupload-1.2.jar” >> /opt/red5/lib/script.properties

echo “commons-io-1.3.2.jar” >> /opt/red5/lib/library.properties
echo “commons-io-1.3.2.jar” >> /opt/red5/lib/script.properties
cd /opt/
chown -R myred5 /opt/red5/
chgrp -R myred5 /opt/red5/

chmod -R 755 /opt/red5/
cd /opt/red5
su myred5 bash -c “cd /opt/red5/; ant”


On Aug 23, 2007, at 9:27 AM, Chris Miller wrote:

I have installed Java 1.5 and Red5 0.6.2. Now when I try to start it,
I get the following:

>>
>> ———————————
>>[root at ded-002 red5]# ./red5.sh
Exception in thread “main” java.lang.NoClassDefFoundError: org/red5/
>> server/Standalone
>> [root at ded-002 red5]#

>> [root at ded-002 red5]#
>> [root at ded-002 red5]# ant server
>> Exception in thread “main” java.lang.NoClassDefFoundError: org/
>> apache/

>> tools/ant/launch/Launcher
>> [root at ded-002 red5]#
>> [root at ded-002 red5]#
>> [root at ded-002 red5]# ant -Djava.target_version=1.5 server

>> Exception in thread “main” java.lang.NoClassDefFoundError: org/
>> apache/
>> tools/ant/launch/Launcher
>> ———————————
>>
>> ———————————
>> [root at ded-002 red5]# java -version

>> java version “1.5.0_12”
>> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_12-b04)
>> Java HotSpot(TM) Client VM (build 1.5.0_12-b04, mixed mode, sharing)
>> [root at ded-002 red5]# cat /etc/redhat-release
>> CentOS release 5 (Final)
>> ———————————

>>
>> ———————————
>> [root at ded-002 red5]# echo $PATH
>> /usr/kerberos/sbin:/usr/kerberos/bin:/usr/lib/courier-imap/sbin:/usr/
>> lib/courier-imap/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/
>> sbin:/usr/bin:/root/bin:/root/bin:/usr/local/ant/bin:/usr/java/bin
>> [root at ded-002 red5]# echo $CLASSPATH

>> /usr/local/ant/lib/ant.jar
>> ———————————
>>
>> I’m not exactly sure what else to do, Java is pretty mysterious to
>> me. Any help would be appreciated.
>>
>> Thanks,
>>
>> Chris Miller
>> ServerMotion

>> http://www.servermotion.com
>>
>>
>>
>>
>> _______________________________________________
>> osflash mailing list
>> osflash at osflash.org
>> http://osflash.org/mailman/listinfo/osflash_osflash.org
>

>
> _______________________________________________
> osflash mailing list
> osflash at osflash.org
> http://osflash.org/mailman/listinfo/osflash_osflash.org

Explore posts in the same categories: centos, install

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s


%d blogger menyukai ini: