Install lame, flac and all the others in linux
From JinzoraWiki
Contents |
Introduction
This setup has been tested on CentOS 5.0 and assumes that you have a few things already installed. Your should have a compiler installed. You should also have a basic understanding of building code from source on a *nix box. This should work for other distributions such as Ubuntu/Fedora, However i have not tested on those systems and cannot claim that this will work for you if you are not using CentOS 5.0
Prerequisite
GCC Compiler and make utility to build.
Related Files
/jinzora2/jukebox/settings.php
First things first.
You can run the below commands to see if you already have Lame or Flac installed.
which lame which flac
Or
updatedb locate lame locate flac
If they spit out something like '/usr/local/lame' then you already have it installed and that is where the program is located. If they don't give you anything you can follow the below instructions to build the packages from source.
This is a bit more involved. An unfortunate consequence doing things this way is that your package manager YUM(cent) or apt-get(debian/ubuntu) will no longer update the packages. You will have to build new versions from source using the below steps if you need to upgrade at some point.
- Note: I'm sorry i have to say this but i cant take responsibility if you break your system doing this. I will do my very best to help you any way i can but heh. You can only do so much if your not right at the system and you don't have remote access to it.
If it's not installed
First thing is to make a location to start building your stuff. I did this in my Home directory, thats the example ill use.
Log into your system and open up a command window (terminal). Or log in via SSH if you are connecting to your system remotely. Once your loged in make sure your in your home directory.
The syntax is /home/username. CD stands for Change Directory
cd /home/xen
Create a directory that we can work in.
mkdir jinzora_install
Change to the directory that we just created.
cd jinzora_install
Now that we have that you can move on to download and compile the sources.
Get Lame
wget http://easynews.dl.sourceforge.net/sourceforge/lame/lame-398-2.tar.gz
Get Flac
wget http://downloads.sourceforge.net/project/flac/flac-linux-i386/flac-1.2.1-linux-i386/flac-1.2.1-linux-i386.tar.gz
Now we have both the sources for FLAC and Lame, We need to decompress them before we can do anything else.
tar -xvsf lame-3.* tar -xvsf flac-1*
Lets build lame first. cd into the lame directory:
cd lame-3.97
There should be a file called configure in the lame dir, that is going to set the config options for us before we build lame. Run the below command.
./configure
This might take a while, dont worry about it. You might have some errors, i dont remember what i needed installed to make lame compile properly so if you have problems post here or PM me.
Now that we have configured lame its time to install it. Type the below lines into the terminal while still in the lame directory.
make make install
Now you have Lame installed, to locate it you can do the below commands.
updatedb locate lame
or
which lame
The above commands will show you where your LAME install is now located. In my system the location is /usr/local/bin/lame It might be different on your system, make sure to take note of this so you can update your Jinzora config.
Now repeat the same steps for FLAC or any other things you need installed and you should be set. If you have problems please post here or PM me and ill do my best to help you out!
-Eureka
Variation for Installing on Shared Hosts
The above "./configure" assumes you have root access to the system. If you are installing on a shared host (and if your shared host allows installing programs--check with them; and if you have SSH access), you will likely have to specify an installation directory that is within your own account. An example is below (replace text in square brackets with your own specific settings):
./configure --prefix=/home/[account name]/[folder name to install to] make make install
A one step option is to run it all as one command as:
./configure --prefix=/home/[account name]/[folder name to install to]; make; make install
