Tag Archives: yum

install build tools on centos 5

7 Jul

When you first install centos 5, you’ll notice your unable to build from source (make / make install)

On ubuntu theres a package called build-tools that contains everything you need to build from source.

On centos you install them individually :

yum install gcc gcc-c++ autoconf  automake rpm-build make which libtool 

Or install everything you’ll need to build just about anything:

yum groupinstall "Development Tools"

Install yum and subversion on media temple dv 3.5

29 Mar

Just upgraded one of my clients servers to dv 3.5. dv 3.5 uses centos 5 so when you install yum you’ll need to use that version

 

rpm -Uvh http://mirror.centos.org/centos/5/os/i386/CentOS/yum-3.0.5-1.el5.centos.5.noarch.rpm

Subversion is now included in the developer tools package. Login to your account center and install developer tools from there.

via hello, hellm 

update: flash media server on media temple / centos

16 Oct

came across this issue on a fresh fms install (installed by someone else)

./shmrd: error while loading shared libraries: libnspr4.so: cannot open shared object file: No such file or directory

yum install *nspr

will grab the seamonkey library, no idea why a browser files are needed, but whatever it works now

using yum or apt-get for ffmpeg server side

5 Sep

I’ve noticed I had a post telling others to just use apt-get or yum to install ffmpeg on servers. Using apt-get or yum is fine if your only using ffmpeg on a stand alone machine, or workstation. Or if your just trying to make sure all dependencies are there before compiling.

but you should know that the apt-get / yum versions of ffmpeg aren’t compiled with shared libraries (let me know if this changes). this is important if you plan on using any tool that depends on ffpmeg’s libraries, like ffmpeg-php, as they need access to those libraries. If your installing ffmpeg on a server, I recommend always compiling the final version with shared libraries. that way if in the future you need to use something that depends on it’s libraries, you’ll be ok.

media temple: install ffmpeg on media temple dv or similar centos setups

24 Jun

the how to covers installing ffmpeg on media temple dv and similar centos setups. I’m going to use yum. Please note that you’ll still need to compile ffmpeg to reinstall it with shared libraries

*note : when i started this tut, yum seemed to be the easiest method. due to the fact i like a challenge, and had already spend an hour or two searching and testing – this tutorial contains alot of troubleshooting info, as i encountered a few issues while installing. You’ll still have to compile ffmpeg to reinstall it with shared libraries.

if you don’t have yum installed : http://blog.hellm.com/post/5

now create a file named dag.repo @ /etc/yum.repos.d

add the following:

[dag]
name=Dag RPM Repository for Red Hat Enterprise Linux
baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag
gpgcheck=1
enabled=1

now run : yum install ffmpeg

If your lucky you’ll see no errors. if so run ffmpeg to make sure everythings ok and stop reading

if your still here you saw a key error. don’t worry so did i. now comes the annoying part

run rpm -ivh /var/cache/yum/dag/packages/*.rpm

if you get more dependency errors. heres the basic process i used

first run : /usr/bin/yum -y -d 0 -e 0 clean all

now try yum again. still no dice? try : ps -ef | egrep ‘rpm|yum’ | grep -v ‘grep’

still having issues?
look at the name of the package listed as a dependency

the name we need will either be between “lib” and the version or the name until the version.

now run

yum install name_To_Use

repeat this process till ffmpeg installs.

I did this process three times, and then everything else installed correctly

WTF! theres gotta be an easier way

actually there is.

open dag.repo (the file we made earlier)

now change gpgcheck=1 to gpgcheck=0

run yum install ffmpeg and you should be good. just know that yum won’t perfomr key validation if you go this route

as always feedback, issues, etc welcome

Please remember to recompile ffmpeg with shared libraries

how to : install ffmpeg

23 Jun

heres a good tutorial covering installing ffmpeg. if your on media temple dv please note that the yum install doesn’t work(at least under the two accounts i tried)

from the site :

If you want to convert other video format to FLV (sorenson codec), everybody will suggest using FFmpeg. In fact, only FFmpeg is not enough for successfully create a server-side command line conversion environment to create FLV with video and audio, plus the FLV 1.1 metadata information. I have stroked for a whole day to setup my Linux server (Fedora Core 3), so I wrote down my note here for other people and myself as a reference.

check it out :
http://www.luar.com.hk/blog/?p=669

media temple: install flash media sever 2 on media temple dv or similar centos setups

23 Jun

first make sure yum is installed. go here for a full media temple yum install how to:
http://blog.hellm.com/post/5

ok you have yum, now run the following


yum install compat-libstdc++-296.i386
yum install compat-libstdc++-33.i386

don’t for get to add a group and user for fms and give the user a password

groupadd fms
useradd -g fms fms
usermod -p yourPassword fms

lastly run the install, but we need to tell it to only warn about platform compatibility

./installFMS -platformWarnOnly

you should now be running the install :)

media temple dv install yum and media temple dv simpler svn install

1 Jun

found a tutorial on installing yum on a media temple dv within a tutorial on installing svn on media temple dv

the yum portion :

$ wget http://centos.mirror.vpslink.com/centos-4/4.4/os/i386/CentOS/RPMS/yum-2.4.3-1.c4.noarch.rpm

It has dependencies, so we need get them too.

$ rpm -ivh –nodeps http://centos.mirror.vpslink.com/centos-4/4.4/os/i386/CentOS/RPMS/libxml2-python-2.6.16-6.i386.rpm http://centos.mirror.vpslink.com/centos-4/4.4/os/i386/CentOS/RPMS/python-elementtree-1.2.6-4.2.1.i386.rpm http://centos.mirror.vpslink.com/centos-4/4.4/os/i386/CentOS/RPMS/python-sqlite-1.1.7-1.2.i386.rpm http://centos.mirror.vpslink.com/centos-4/4.4/os/i386/CentOS/RPMS/rpm-python-4.3.3-18_nonptl.i386.rpm http://centos.mirror.vpslink.com/centos-4/4.4/os/i386/CentOS/RPMS/python-urlgrabber-2.9.8-2.noarch.rpm

Now we can install yum:

$ rpm -Uvh yum-2.4.3-1.c4.noarch.rpm

Check if it’s installed:

$ rpm -q yum

go check it out for the full how to:
http://blog.hellm.com/post/5

setup svn server on media temple dv or centos with plesk

7 May

I’m saving this here for my ref:

This walk through covers setting up a svn server on media temples dedicated virtual servers (dv) or similarly configured centos with plesk installations.

With media temple the yum command isn’t available so we have to do it the long way

first go to http://subversion.tigris.org/project_packages.html

Download the source for both subversion and dependencies. make sure you download them both to the same directory

you can do this using wget, ex : wget file_location

ok now extract both archives – use google if you don’t know how

almost done, now lets get it installed

first cd (change directory) into the subversion folder, then run the following commands

./configure --with-apxs=/usr/sbin/apxs
make
make install

This will configure with apache support, build and install. now all thats left is setting up apache and a domain, but before we get to it, check your httpd.conf file and make sure you see the following modules being loaded :

mod_dav_svn mod_authz_svn

I prefer to use a subdomain and recommend it, ex: trac.domain = trac frontend, svn.domain=regular svn access. It’s up to you. the steps for setting up a subdomain and domain are pretty much the same, so i’ll only cover subdomains.

Login to plesk, select the domain you plan on using. go to subdomains > add new

ok here we want to setup a new subdomain. remember to give this subdomain a different ftp account that the main site.

save this domain, check that it’s up and running , and exit plesk.

almost done :)

login to your servers file system go to /var/www/vhosts/your_domain/subdomains/your_subdomain/

now we need to setup a svn repo.
first make a new directory for our repo , I recommend making it your subdomains dir, ex

mkdir /var/www/vhosts/your_domain/subdomains/your_subdomain/svn/repo;
chmod 0777 /var/www/vhosts/your_domain/subdomains/your_subdomain/svn/repo;
svnadmin create /var/www/vhosts/your_domain/subdomains/your_subdomain/svn/repo;

next cd into your conf directory at /var/www/vhosts/your_domain/subdomains/your_subdomain/conf

vi vhost.conf

and enter :

#svn.server.com — vhost.conf file
<location />
DAV svn
SVNPath /var/www/vhosts/your_domain/subdomains/your_subdomain/svnrepo
AuthType Basic
AuthName “Subversion Repository”
AuthUserFile /etc/svn-auth-file
Require valid-user
</location>

ok promise it’s almost over

We need to add a user for access via the apache svn frontend

htpasswd -c /etc/svn-auth-file your_user

now run
/usr/local/psa/admin/sbin/websrvmng -a -v

That restarts apache to load all of our changes.

now go to your_subdomain.your_domain and login – svn is running

Things to keep in mind, I’m only covering media temple dv, and similar centos with plesk configurations. I’m not covering security, i’ve not covering trac, getting your repo setup, etc. So this is a vanilla install. – use google and make it more.

Articles I used :

http://alexle.net/archives/138