Re: How to add /sbin to useable paths on FC5

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Monday 05 March 2007 15:22, Matthew Miller wrote:
> On Sun, Mar 04, 2007 at 07:04:46PM +0100, Nigel Henry wrote:
> > > 'su -' maybe?
> >
> > Thanks Gene. I'd tried that, but then scons install was looking in the
> > /root directory for the SConstruct file, and it obviously wasn't there.
> > Darned computers!
>
> Here's my suggestion for the "right" way to deal with this:
> <http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=80215>
>
> --
> Matthew Miller           mattdm@xxxxxxxxxx          <http://mattdm.org/>
> Boston University Linux      ------>              <http://linux.bu.edu/>

Thanks for that Matthew. I've never used "sudo" on FC, but "su". This is the 
first time I've had a problem like this, and is the first time I've installed 
a library that's built using scons. I did not want to attemps hacking the 
SConscript, as I've no experience, and didn't want to really mess anything 
up, but the only bit of the script that mentions ldconfig is below. Any 
suggestions?

# install paths 
# 
###################################### 
 
try: 
 umask = os.umask(022) 
 #print 'setting umask to 022 (was 0%o)' % umask 
except OSError:     # ignore on systems that don't support umask 
 pass 
 
import SCons 
from SCons.Script.SConscript import SConsEnvironment 
SConsEnvironment.Chmod = SCons.Action.ActionFactory(os.chmod, 
  lambda dest, mode: 'Chmod: "%s" with 0%o' % (dest, mode)) 
SConsEnvironment.LdConfig = SCons.Action.ActionFactory(lambda dir: 
os.system('ldconfig %s' % dir),
  lambda dir: 'LdConfig: "%s"' % dir)

I've never quite understood why on FC there is this problem 
with, /sbin, /usr/sbin, and /usr/local/sbin. This a problem that doesn't 
exist on Debian. I started on FC1 as a Linux newbie, and you post a question 
to a list, and someone says for example, "send me the output of lsmod". So 
you type lsmod, and get a "no such file or directory", which can be quite 
confusing for a newbie.  I presume though that there is some valid reason why 
should need to type the complete path for the sbin directories.

I will contact the author of libzzub, and see if the full path to ldconfig can 
be added to the SConscript.

Nigel.


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux