Click to See Complete Forum and Search --> : how to install software from source (.tar.gz)


AndrewHolland
06-25-2003, 04:57 PM
Ok,,,, day two with this awesome OS

tar -zxvf filename
it then list the files,,,, now how do i install the program or read the txt files?

werD

mdwatts
06-25-2003, 05:00 PM
Use 'cat' or 'less' or 'more' to view text files.

i.e.

cat /path/to/<filename>

A great tutorial that will explain most of your questions on installing from source.

http://justlinux.com/nhf/Compiling_Kernels/Compiling_Software.html

Hayl
06-25-2003, 05:05 PM
<moved to software and edited Subject to be more meaningful>

AndrewHolland
06-25-2003, 05:18 PM
very fast forum ,,,, looking forward to this new OS

AndrewHolland
06-25-2003, 11:02 PM
tar -zxvf icecast.tar.gz
it then list the files,,,,

Ok, day two is breaking my brain here,,,,,

./configure
make
make install

everything looks great ...no errors

so now how do I start icecast?

don't see it in "Sound & Video"
found it here:
/home/schmoobeedrew/downloads/icecast-2.0-alpha-2

Drew

chucksaysword2
06-25-2003, 11:37 PM
What does "ls /home/schmoobeedrew/downloads/icecast-2.0-alpha-2 "from the terminal return?

What about "whereis icecast"? Is /home/schmoobeedrew/downloads/icecast-2.0-alpha-2 the executable for icecast or the folder containing icecast?

Need a bit more info before I can help. I won't be around for a while so maybe someone else can help you if you provide some more info. Adios and good luck! :D

P.S. For future reference, the preferred place to install programs compiled from source is /usr/local. See http://linux-newbie.sunsite.dk/ for tons of great Linux info.

hyp_spec
06-26-2003, 12:37 AM
did you try running 'icecast' ??

AndrewHolland
06-26-2003, 01:06 AM
/home/schmoobeedrew/downloads/icecast-2.0-alpha-2

is the folder
should it be somewhere else?

I don't know how to start Icecast!
not shown i the RUN PROGRAM
guess its not installed?

but I did install a xmms by RPM with no probs and it is not listed in the RUN PROGRAM

It is in Sound & Video toolbar

mdwatts
06-26-2003, 08:49 AM
First as root, update the locate database

su -
<root password>

updatedb

Then

locate icecast
and
whereis icecast

Look for icecast in one of the binary directories.

/usr/bin
/usr/sbin
/usr/local/bin

etc.

AndrewHolland
06-26-2003, 02:04 PM
ok su
# updatedb
(that took awhile)
then whereis icecast
found it
usr/local/bin/icecast
usr/local/etc/icecast.xml

NOW what ,,,,, ?

Drew

mdwatts
06-26-2003, 02:08 PM
If /usr/local/bin is not in your PATH (echo $PATH to check), you will need to prefix the command with './' to tell the shell to look in the current directory for the command.

cd /usr/local/bin

./icecast

AndrewHolland
06-26-2003, 02:19 PM
cd /usr/local/bin

./icecast echo $PATH

like that?

mdwatts
06-26-2003, 02:24 PM
echo $PATH

to check to see if /usr/local/bin is in your PATH variable.

If it is, just typing

icecast

should work.

If it isn't, type

cd /usr/local/bin

./icecast

mdwatts
06-26-2003, 02:26 PM
# echo $PATH

/sbin:/usr/sbin:/usr/local/sbin:/root/bin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/var/lib/dosemu:/usr/games:/opt/bin:
/opt/gnome2/bin:/opt/gnome/bin:/opt/kde3/bin:/usr/lib/java/bin:/opt/gnome/bin

AndrewHolland
06-26-2003, 02:30 PM
OK
# cd /usr/local/bin/
./icecast/
bash: ./icecast/: Not a directory
# echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/schmoobeedrew/bin
#

does that help ya?

je_fro
06-26-2003, 02:35 PM
just type:
icecast

That should do it.

If not cd /usr/local/bin
and
./icecast

NOT
./icecast/

AndrewHolland
06-26-2003, 02:37 PM
hmmm....

# icecast
Usage:
icecast -c <file> Specify configuration file

# ls
icecast (in Green)
#

mdwatts
06-26-2003, 02:38 PM
Originally posted by AndrewHolland

does that help ya?

As I said, if '/usr/local/bin' is in the results of 'echo $PATH', then you only need to type

icecast

at the commandline.

je_fro
06-26-2003, 02:41 PM
man icecast

:p

AndrewHolland
06-26-2003, 02:47 PM
no manual entry for icecast

I sort of understand PATH
/usr/local/bin/ is a place like C:/program files?

sorry for win32 but thats all I know so far

so icecast is IN my path ,,, right

mdwatts
06-26-2003, 02:50 PM
The directory that contains icecast is in your PATH.

If not, you would need to type

cd /usr/local/bin

to enter the directory and then

./icecast

to tell the shell to search the current directory (/usr/local/bin) for the command 'icecast'.

Dos searches the current working directory even it it's not in the PATH. Linux/Unix does not. Hence './'

AndrewHolland
06-26-2003, 02:55 PM
I don't know where we are going here,,,,,
is the program icecast installed

if it is how do I start it?

je_fro
06-26-2003, 03:06 PM
http://melmoth.dyndns.org/stream/doc/c326.html

You may have to edit some config file to get started. What do you want to do? Start a radio station? I'd do this:

find / | grep icecast

then start looking through those directories for some documentation.

mdwatts
06-26-2003, 03:06 PM
Do you have a terminal/console open?

Type

icecast

and press return.

Are you funnin with me? :)

AndrewHolland
06-26-2003, 03:11 PM
not trying to make waves,,,,,

guess I'll go for lunch,,,,,

I have xterm screen open

:confused:

AndrewHolland
06-26-2003, 03:13 PM
# icecast
Usage:
icecast -c <file> Specify configuration file

# ls
icecast (in Green)
#

I will try and locate the config file and I guess use gedit?

werD
Drew

off to lunch

mdwatts
06-26-2003, 03:15 PM
Originally posted by AndrewHolland
# icecast
Usage:
icecast -c <file> Specify configuration file

# ls
icecast (in Green)
#

It wants a configuration file to read in.

Did you try the link that je_fro posted? It explains about the config file and options.

AndrewHolland
06-26-2003, 03:37 PM
Ya guys I have a web radio station website

http://schmoobeedrew.hopto.org

running on win32

now to put it all over on a real OS!

Drew

AndrewHolland
07-06-2003, 05:10 PM
Ok,,,, gonna try another app.

downloaded and
rpm -ivh phpMyAdmin.rh.scr.rpm
showed
1: phpMyAdmin ############### 100%
# find /| grep phpMyAdmin

five listings showed,,,, two of which are bz2 files....
do I need to further install the app. or how do I config to be able to admin the MySQL database via the web?

Drew

mdwatts
07-06-2003, 05:15 PM
Originally posted by AndrewHolland

rpm -ivh phpMyAdmin.rh.scr.rpm


That would be the source rpm package and not the binary.

Either download and install the correct rpm binary package (i.e. ends in i386.rpm) or rebuild the source rpm into a binary.

rpm --rebuild phpMyAdmin.rh.scr.rpm

Though Redhat uses

rpmbuild --rebuild phpMyAdmin.rh.scr.rpm

instead. You may need to install the rpmbuild package if you get command not found. I'm not a Redhat user, so I'm not sure if rpmbuild is a separate rpm package or not.

AndrewHolland
07-06-2003, 05:22 PM
went looking for a i386.rpm and no luck at:

http://www.rpmfind.net/linux/rpm2html/search.php?query=phpmyadmin&submit=Search+...

mdwatts
07-06-2003, 05:34 PM
If you cannot find it anywhere else, then do as I suggested to rebuild the source rpm.

For future reference...

http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/custom-guide/s1-rpm-using.html

http://www.rpm.org/max-rpm/

mdwatts
07-06-2003, 05:36 PM
phpMyAdmin (http://www.google.com/linux?hl=en&lr=lang_en&ie=ISO-8859-1&q=phpMyAdmin&btnG=Google+Search)

AndrewHolland
07-07-2003, 06:45 PM
Thnx to your help I now have phpmyadmin installed.

now I'm trying to open a sql file to now drop the tables in to the database

unable to open the file ...... what app should I use?