LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-27-2009, 02:15 PM   #1
Ajit Gunge
Member
 
Registered: Jan 2008
Location: Pune
Distribution: RHEL,fedora
Posts: 253
Blog Entries: 1

Rep: Reputation: 21
Problem with compiling a package


Hi,
I just now downloaded a tar file for net and now I have untarred it.I am blindly following instructions listed in a book the book says as follows.

So, enter the command wget http://www.mpg123.de/mpg123/mpg123-0.59r.tar.gz to download the tarball. Once you've got it, unpack it and change to the mpg123-0.59r directory, then type make linux to compile the program, and make install to install it.

Now when I go into the directory mpg123-0.59r and run the make linux command I have the following error

make CC=gcc LDFLAGS= \
OBJECTS='decode_i386.o dct64_i386.o decode_i586.o \
audio_oss.o term.o' \
CFLAGS='-DI386_ASSEM -DPENTIUM_OPT -DREAL_IS_FLOAT -DLINUX \
-DREAD_MMAP -DOSS -DTERM_CONTROL\
-Wall -O2 -m486 \
-fomit-frame-pointer -funroll-all-loops \
-finline-functions -ffast-math' \
mpg123-make
make[1]: Entering directory `/home/gunge/mpg123-0.59r'
make[2]: Entering directory `/home/gunge/mpg123-0.59r'
make[2]: *** No rule to make target `\
', needed by `mpg123'. Stop.
make[2]: Leaving directory `/home/gunge/mpg123-0.59r'
make[1]: *** [mpg123-make] Error 2
make[1]: Leaving directory `/home/gunge/mpg123-0.59r'
make: *** [linux] Error 2

I need to compile the package but I dont understand how do i get this to compile.Can anyone please help?

Regards,
Ajit
 
Old 08-27-2009, 02:29 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,589

Rep: Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643
WHAT distro are you running ????
and DID you install the gcc and auto tools for it ???

also looking at the code from the link
it is from 1997 to 1999
10 year old code will most likely NEVER build on a new system


when i run make i get this
Code:
make

You must specify the system which you want to compile for:

make linux-help     Linux, more help
make freebsd-help   FreeBSD more help
make solaris        Solaris 2.x (tested: 2.5 and 2.5.1) using SparcWorks cc
make solaris-gcc    Solaris 2.x using GNU cc (somewhat slower)
make solaris-gcc-esd  Solaris 2.x using gnu cc and Esound as audio output
make solaris-x86-gcc-oss Solaris with (commercial) OSS
make solaris-gcc-nas Solaris with gcc and NAS
make sunos          SunOS 4.x (tested: 4.1.4)
make hpux           HP/UX 9/10, /7xx
make hpux-gcc       HP/UX 9/10, /7xx using GCC cc
make hpux-alib      HP/UX with ALIB audio
make sgi            SGI running IRIX
make sgi-gcc        SGI running IRIX using GCC cc
make dec            DEC Unix (tested: 3.2 and 4.0), OSF/1
make ultrix         DEC Ultrix (tested: 4.4)
make aix-gcc        IBM AIX using gcc (tested: 4.2)
make aix-xlc        IBM AIX using xlc (tested: 4.3)
make aix-tk3play    IBM AIX
make os2            IBM OS/2
make netbsd         NetBSD
make bsdos          BSDI BSD/OS
make bsdos4         BSDI BSD/OS 4.0
make bsdos-nas      BSDI BSD/OS with NAS support
make mint           MiNT on Atari
make generic        try this one if your system isn't listed above

Please read the file INSTALL for additional information.
Did you READ the INSTALL file ?
and running make generic
gives an error ( no surprise there ) seeing as i am using gcc 4.4
gcc34 also throws the same error

this code is VERY old so no surprise there also

Last edited by John VV; 08-27-2009 at 02:39 PM.
 
Old 08-27-2009, 02:41 PM   #3
Ajit Gunge
Member
 
Registered: Jan 2008
Location: Pune
Distribution: RHEL,fedora
Posts: 253

Original Poster
Blog Entries: 1

Rep: Reputation: 21
Problem with compilation

Quote:
Originally Posted by John VV View Post
WHAT distro are you running ????
and DID you install the gcc and auto tools for it ???
I am using Red Hat.
This is the output of the uname -a command
2.6.18-92.1.13.AV01PAE #1 SMP


my which gcc shows following output
/usr/bin/gcc which means I have the gcc installed.

I didnt really get what you mean by auto tools?

Thanks,
Ajit
 
Old 08-27-2009, 03:20 PM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,589

Rep: Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643
unless YOU NEED this 12 to 10 year old program i would not bother with it

it would be like trying to build a MS Windows 95 or 98 program on windows vista or Windows 7

A big pain in the " you know what "
if at all possible .
 
Old 08-27-2009, 03:26 PM   #5
Ajit Gunge
Member
 
Registered: Jan 2008
Location: Pune
Distribution: RHEL,fedora
Posts: 253

Original Poster
Blog Entries: 1

Rep: Reputation: 21
Yeah you are right

Quote:
Originally Posted by John VV View Post
unless YOU NEED this 12 to 10 year old program i would not bother with it

it would be like trying to build a MS Windows 95 or 98 program on windows vista or Windows 7

A big pain in the " you know what "
if at all possible .
Yes you are right I guess.Can you tell me where can i get more free information on isntalling asterisk and making it run on a linux machine or is there any really good book that can give me look and feel of asterisk.

Thanks,
Ajit
 
Old 08-27-2009, 03:31 PM   #6
kdelover
Member
 
Registered: Aug 2009
Posts: 311

Rep: Reputation: 36
There is a good book o asterisk by O'REilly try that out,thats the only book i can recall of.
 
Old 08-27-2009, 03:39 PM   #7
Ajit Gunge
Member
 
Registered: Jan 2008
Location: Pune
Distribution: RHEL,fedora
Posts: 253

Original Poster
Blog Entries: 1

Rep: Reputation: 21
Softcopy of Asterisk by O,Reilly

Quote:
Originally Posted by kdelover View Post
There is a good book o asterisk by O'REilly try that out,thats the only book i can recall of.
Thanks Kledover.I may be getting greedy but do you know where can I get a soft copy of this book.

Thanks,
Ajit
 
Old 08-27-2009, 03:44 PM   #8
kdelover
Member
 
Registered: Aug 2009
Posts: 311

Rep: Reputation: 36
Nothing beats this

http://tinyurl.com/kj7wm7
 
Old 08-27-2009, 03:46 PM   #9
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,589

Rep: Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643
the book is rute
http://rute.2038bug.com/rute.html.gz
some on line Courses
http://www.linux.org/lessons/
"Bash Guide for Beginners"
http://tldp.org/LDP/Bash-Beginners-G...tml/index.html
and
http://www.linuxcommand.org/index.php

an oreilly page
http://linuxdevcenter.com/
http://www.oreillynet.com/linux/cmd/
 
Old 08-27-2009, 04:35 PM   #10
Ajit Gunge
Member
 
Registered: Jan 2008
Location: Pune
Distribution: RHEL,fedora
Posts: 253

Original Poster
Blog Entries: 1

Rep: Reputation: 21
Thanks

Thanks John and Kdelover.

Ajit
 
Old 08-27-2009, 09:10 PM   #11
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,589

Rep: Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643
is this what you want to install ?
http://asteriskathome.sourceforge.net/
a pbx for the phone ?

a search at sourceforge
http://sourceforge.net/search/?type_...soft&words=pbx
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiling a package from ubuntu in Debian kushalkoolwal Debian 9 06-30-2009 06:30 PM
a problem when compiling intel c++ professional package for linux huangmi0212 Linux - Software 1 05-03-2009 10:28 PM
Compiling from source or package installation? boler Linux - Software 2 01-26-2008 11:40 AM
package compiling error nesta Programming 1 04-09-2007 06:41 AM
i was compiling a source package then deepinlife Linux - Newbie 5 06-25-2006 07:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:51 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration