LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 01-16-2012, 03:50 AM   #1
luw
LQ Newbie
 
Registered: Jan 2007
Location: greater nyc area
Distribution: ubuntu10 LTS, opensolaris 5.11, tinycore 3.x
Posts: 14

Rep: Reputation: 0
make m4 fails


hi guys i am trying to build my first linux and have hit a snag.

one of the tools i need is called "m4" so as a regular user extract the m4.tar, and ./configure, make and make install. it fails at "make install" with the following:
Code:
...
make[3]: Entering directory `/mnt/lfs/sources/m4-1.4.16/src'
test -z "/usr/local/bin" || /bin/mkdir -p "/usr/local/bin"
  /usr/bin/install -c m4 '/usr/local/bin'
/usr/bin/install: cannot create regular file `/usr/local/bin/m4': Permission denied
make[3]: *** [install-binPROGRAMS] Error 1
...
should i run this make install as root?


also, i am quite confused about this whole process here...i've read over the manuals but there are holes that leave me stumped for hours. any help or insight for how to make this less of a PITA would be very appreciated.

thanks for your time and best regards
 
Old 01-16-2012, 04:50 AM   #2
corp769
Guru
 
Registered: Apr 2005
Posts: 5,807

Rep: Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996
Yes, you always want to "make install" as root. Either use sudo, log directly in as root to run it, or do what I do, and use the following:
Code:
su -c 'make install'
This will prompt you for your root password, and then "make install" will run with UID 0 only for that instance to install the needed files.
 
1 members found this post helpful.
Old 01-16-2012, 05:45 PM   #3
luw
LQ Newbie
 
Registered: Jan 2007
Location: greater nyc area
Distribution: ubuntu10 LTS, opensolaris 5.11, tinycore 3.x
Posts: 14

Original Poster
Rep: Reputation: 0
hi corp769 thank you for the response.

ok done and it seems to have been created fine. sorry for the trivial question, i just don't want to screw up my host system.
 
Old 01-17-2012, 12:55 AM   #4
corp769
Guru
 
Registered: Apr 2005
Posts: 5,807

Rep: Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996
It's all good. You are better to ask questions first anyway

And could you kindly mark your thread as solved using the thread tools located at the top of the page? Thanks!

Cheers,

Josh
 
Old 01-17-2012, 02:50 AM   #5
luw
LQ Newbie
 
Registered: Jan 2007
Location: greater nyc area
Distribution: ubuntu10 LTS, opensolaris 5.11, tinycore 3.x
Posts: 14

Original Poster
Rep: Reputation: 0
hi again i wont forget to close the thread, but one more quick question?

should i run ./configure and make also as root too? I am following a tutorial from LFS and sometimes it's not clear what user i should be during a given step.
 
Old 01-17-2012, 04:18 AM   #6
corp769
Guru
 
Registered: Apr 2005
Posts: 5,807

Rep: Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996Reputation: 996
Unless strictly compiling for the root user, you don't have to.
 
  


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
make fails on nginx-0.8.49 bluethundr Linux - Software 2 10-04-2010 11:38 AM
driver make fails android6011 Linux - General 2 04-11-2008 11:14 AM
Aleph one make fails Snowburn Slackware 5 02-15-2007 12:06 AM
Kernel compile fails with make-kpkg, not with make cspos Debian 37 11-09-2005 09:11 AM
madwifi fails to 'make' Vincent_Vega Linux - Wireless Networking 1 12-31-2004 05:00 PM


All times are GMT -5. The time now is 02:29 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration