LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-30-2006, 11:32 AM   #1
mEo
LQ Newbie
 
Registered: Apr 2006
Posts: 17

Rep: Reputation: 0
Question Compiling Programs - Always Failing?


Hi,

I am begining to understand now how Linux works with installing programs.

I have gotten the hang of RPM (easy ), but I can't do the other type (./configure, make, make install)

I have tried to ./configure many applications and they have all failed. For example, I downloaded Xine (DVD Player). It was a tar.gz file. I extracted it (on my desktop, that's where I downloaded it to), opened up my console, typed cd (directory). I then typed ./configure. That seemed to go ok. I then did make which took forEVER. Once that was finally done, I typed make install and it came up with this:
Code:
meo@OUROWNNW1:~/Desktop/xine-lib-1.1.1/xine-lib-1.1.1> make install
Making install in doc
make[1]: Entering directory `/home/meo/Desktop/xine-lib-1.1.1/xine-lib-1.1.1/doc'
Making install in man
make[2]: Entering directory `/home/meo/Desktop/xine-lib-1.1.1/xine-lib-1.1.1/doc/man'
Making install in en
make[3]: Entering directory `/home/meo/Desktop/xine-lib-1.1.1/xine-lib-1.1.1/doc/man/en'
make[4]: Entering directory `/home/meo/Desktop/xine-lib-1.1.1/xine-lib-1.1.1/doc/man/en'
make[4]: Nothing to be done for `install-exec-am'.
test -z "/usr/local/man/man1" || mkdir -p -- "/usr/local/man/man1"
 /usr/bin/install -c -m 644 './xine-config.1' '/usr/local/man/man1/xine-config.1'
/usr/bin/install: cannot create regular file `/usr/local/man/man1/xine-config.1': Permission denied
make[4]: *** [install-man1] Error 1
make[4]: Leaving directory `/home/meo/Desktop/xine-lib-1.1.1/xine-lib-1.1.1/doc/man/en'
make[3]: *** [install-am] Error 2
make[3]: Leaving directory `/home/meo/Desktop/xine-lib-1.1.1/xine-lib-1.1.1/doc/man/en'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory `/home/meo/Desktop/xine-lib-1.1.1/xine-lib-1.1.1/doc/man'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/meo/Desktop/xine-lib-1.1.1/xine-lib-1.1.1/doc'
make: *** [install-recursive] Error 1
meo@OUROWNNW1:~/Desktop/xine-lib-1.1.1/xine-lib-1.1.1>
What is wrong, why does this come up on EVER PROGRAM i try to install and finally, how do I fix the problem?

Also, how do I view installed programs? I have Suse 10 KDE.
 
Old 04-30-2006, 11:35 AM   #2
puntjuh
Member
 
Registered: Apr 2006
Location: holland
Distribution: Gentoo / debian / suse / mint
Posts: 558

Rep: Reputation: 42
before doing make install you have to be root..

su

then do

make install
 
Old 04-30-2006, 03:48 PM   #3
Sabinou
Member
 
Registered: Jan 2006
Location: France
Distribution: Debian Wheezy, Webmin + Virtualmin (remote dedi)
Posts: 214

Rep: Reputation: 30
The reason behind this is that a program, when it's installed, is installed in the system folders, and as a single user you don't have access to those folders - for obvious security reasons.

With su (=superuser, i.e. root), you have root priviledge... but only log in as root when it's necessary, don't you even try to do the "./configure" and "make" steps as root, do them as simple user. You can enter "exit" to become simple user again in a root console.
 
Old 04-30-2006, 09:33 PM   #4
mEo
LQ Newbie
 
Registered: Apr 2006
Posts: 17

Original Poster
Rep: Reputation: 0
Thanks a lot it seems to be working now! But one problem, where does it install it to? I can't seem to see it anywhere

Last edited by mEo; 04-30-2006 at 09:37 PM.
 
Old 04-30-2006, 10:29 PM   #5
mEo
LQ Newbie
 
Registered: Apr 2006
Posts: 17

Original Poster
Rep: Reputation: 0
can anyone help please?
 
Old 04-30-2006, 11:19 PM   #6
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
Looks like it installed into /usr/local so check /usr/local/bin for the executable.
 
Old 04-30-2006, 11:26 PM   #7
mEo
LQ Newbie
 
Registered: Apr 2006
Posts: 17

Original Poster
Rep: Reputation: 0
I don't see an executable, i only see 4 files: cc.pl, g++.pl, gcc.pl and xine-config
 
Old 05-01-2006, 12:27 AM   #8
mEo
LQ Newbie
 
Registered: Apr 2006
Posts: 17

Original Poster
Rep: Reputation: 0
anyone help please?
 
Old 05-01-2006, 03:58 AM   #9
Sabinou
Member
 
Registered: Jan 2006
Location: France
Distribution: Debian Wheezy, Webmin + Virtualmin (remote dedi)
Posts: 214

Rep: Reputation: 30
That should have installed the program in "bash" : bash is, so to say, a home of all program and script shortcuts. It's located in /usr/local/bin/ and /bin/. This way, you can run any program listed in those folders, from any folder with any user. If you have had xine installed, i'd bet that there's now a xine script in /usr/local/bin. Anyway, to make things simple, open a console and run "xine", you'll see if something starts running
 
Old 05-01-2006, 04:06 AM   #10
Ynot Irucrem
Member
 
Registered: Apr 2005
Location: Perth, Western Australia
Distribution: Debian
Posts: 233

Rep: Reputation: 30
You only installed xine-lib. If you want to actually play audio and video, you need a frontend like xine-ui, totem, or kaffeine.

By the way, which distribution are you using? There might be an easier way to install this, depending on your distro.
 
  


Reply



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
eth1 failing on boot, IEEE firewire card driver failing, help jackuss_169 Linux - Laptop and Netbook 5 03-05-2005 07:34 AM
Compiling C++ programs rchillal Linux - Newbie 13 02-08-2005 05:27 AM
compiling programs disorderly Linux - Newbie 2 10-17-2003 12:48 PM
LILO install failing, Boot failing, but Installation fine. sramelyk Slackware 9 08-23-2003 02:37 PM
X failing to load; AddScreen/InitScreen failing for driver 0 weblion Linux - Software 1 08-01-2002 06:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:26 PM.

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