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 02-10-2002, 03:56 AM   #1
newbie_jubie
LQ Newbie
 
Registered: Feb 2002
Posts: 7

Rep: Reputation: 0
installation blues


Hi all,

I am trying to install my first application on Linux and I follow the following steps.

1. ./configure
2. make
3. make install ( after setting to root)

But the application doesnt install giving the following error :

cp: cannot create regular file `/usr/local/sbin/#inst.31996#': Permission denied
make[2]: *** [install] Error 1

What am I doing wrong?

/newbie_jubie
 
Old 02-10-2002, 08:39 AM   #2
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 58
That's odd...

It would seem from that error that you are not really su'ed into root. You may want to try the installation front to back as root.

Cheers,

Finegan
 
Old 02-10-2002, 05:20 PM   #3
newbie_jubie
LQ Newbie
 
Registered: Feb 2002
Posts: 7

Original Poster
Rep: Reputation: 0
Hi finegan,

I tried the three step process by su ing to root.
I still get the same error.

I forgot to mention this warning earlier :-

make install
install: =: No such file or directory
Making install in src

and then it carries on giving the following errors

make[2]: Entering directory `/.automount/lutece/root/usr5/dhillon/pbs_target/src
/server'
/bin/sh ../../buildutils/pbs_mkdirs server
/bin/sh ../../buildutils/pbs_mkdirs aux
cp: cannot create regular file `/usr/local/sbin/#inst.12142#': Permission denied
make[2]: *** [install] Error 1
make[2]: Leaving directory `/.automount/lutece/root/usr5/dhillon/pbs_target/src/
server'
make[1]: *** [install] Error 2
make[1]: Leaving directory `/.automount/lutece/root/usr5/dhillon/pbs_target/src'
make: *** [install] Error 2

I had another question. Is su ing to root the same as logging in as root? Because I cannot login as root from the telnet prompt though I can su to root once I am logged in as myself.

cheers,
/newbie_jubie
 
Old 02-10-2002, 05:52 PM   #4
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 58
Yes and no. You keep the same shell and .profile, or really .bash_profile as the original login. User and Group IDs become root's. This may be a problem of not having /usr/local/sbin in the user's path, which it almost certainly would not be by default.

Also, SecureShell allows (usually) for remote root login. Or, somewhere in init.d or xinit.d you can allow for remote root login in telnet... although if this machines is viewable at all to the outside world, that's a bad idea.

Cheers,

Finegan
 
Old 02-10-2002, 07:09 PM   #5
newbie_jubie
LQ Newbie
 
Registered: Feb 2002
Posts: 7

Original Poster
Rep: Reputation: 0
Hi finegan,

You were right, the path did not include /usr/local/sbin. But I still get the same errors with the install. It appears somehow that the root access is not recognized and hence the permission denied warning. Any other ideas?

Thanks for the other piece of information.

Cheers,
/newbie_jubie
 
Old 02-10-2002, 07:33 PM   #6
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 58
Well, if you can't ssh in, and you can't change the root acceptance of the telnet daemon, you can try: "su -" The - will force the shell to take the environment variables of the user being switched to. It doesn't work on my Slack box. I don't know why... but I can ssh in as root, and I've never had this kind of problem with installing things remotely via an su'ed telnet session; so I've never had to fix it. On some systems /usr/local doesn't exist until you create it. Possibly you just need to make the dir.

Also, if the package is small enough, you could always poke through the 'install' part of the makefile and just move all of the binaries by hand, but this could cause some other problems if you don't figure out exactly what the install part of the Makefile wants to do.

Sorry if I'm no help. Just curious, but what's keeping you from the terminal offhand?

Cheers,

Finegan
 
Old 02-10-2002, 08:28 PM   #7
newbie_jubie
LQ Newbie
 
Registered: Feb 2002
Posts: 7

Original Poster
Rep: Reputation: 0
Hi finegan,

The machines are in a building which I dont have access to. I can just access them remotely for the time being.

I got some help from my friend. Due to the mount permissions on the /usr/local/sbin directory, I was unable to write on it inspite of being the root. So I had to install in a different directory and everything installed.

I feel like a total ignoramus about Linux right now. Thanks for all your help.



/very newbie_jubie
 
Old 02-10-2002, 08:38 PM   #8
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 58
Ohhh.... I never thought of checking the write permissions to /usr/local/sbin. I just assumed it would be writeable. Sorry man, had I known that I wouldn't have led you on a little rat race there.

Cheers,

Finegan
 
  


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
Filesystem Blues.. Cyrix Linux - Software 1 10-29-2005 11:38 AM
GAIM .80 Installation blues gaurava99 Linux - Software 10 07-23-2004 06:57 AM
post-installation blues Lord Zoltar Slackware - Installation 13 06-20-2004 09:22 PM
'ps' Blues Odd_Bloke Linux - Newbie 3 08-30-2003 01:03 AM
USB blues. rkane Linux - Newbie 2 05-19-2003 10:16 AM


All times are GMT -5. The time now is 05:00 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration