file into an executable area....does it need database update
aus9
Status: Assistant
Joined: 21 Sep 2008
Posts: 358
Location: Australia
Reply Quote
Hi

Forgive my ignorance yet again.

I can remaster some isos....using various instructions they offer.

1) If I place an executable in the standard place such as
/usr/sbin
and repack that rootfs /squashfs /cramfs
.....I can run the command with the leading dot

:: Code ::

./usr/sbin/newexecutable


2) What I can not currently do is run it without the leading dot and without the pathway...but .profile has the bin pathways correctly set.

What I am thinking without knowing what I am doing is I need to run some kind of command ......to get the new executable recognised.

The executables are not installed using chroot packagemanagement .....in fact they are not using any package manager....simply copied off hard drive into unpaced rootfs type folders.

------

If anyone has understood what I am trying to do and has an answer I would appreciate it.

regards

gordy aka aus9
Back to top
techAdmin
Status: Site Admin
Joined: 26 Sep 2003
Posts: 3895
Location: East Coast, West Coast? I know it's one of them.
Reply Quote
Are: /squashfs /cramafs in $PATH?

like so: /squashfs/usr/bin:/squashfs/usr/sbin
and so on?

If you add them, logout of console session, then login again, does the command then work as expected without using ./

That's usually why things won't run.

You can also just see what the path is for real
:: Code ::
cd path/to/usr/sbin
pwd


and see what the actual working directory is, whatever it is, you need to add that to PATH= in /etc/profile.
Back to top
Display posts from previous:   

All times are GMT - 8 Hours