Re: Running Nautilus form a custom path
- From: Adam Dingle <adam medovina org>
- To: Shyal Beardsley <shyalb gmail com>
- Cc: nautilus-list gnome org
- Subject: Re: Running Nautilus form a custom path
- Date: Thu, 25 Apr 2013 10:04:15 -0004
Actually, I don't think you should even need to do step 2 I mentioned below. When you build Nautilus with a custom prefix, it should find its libraries in /custom/path/lib automatically (the linker will embed /custom/path/lib into the executable as an rpath - see
http://en.wikipedia.org/wiki/Rpath).
You said Centos is loading /usr/local/bin/nautilus. Is /custom/path/bin in your PATH? What do you see if you type 'which nautilus' at a command line?
One more note: if you are using any Nautilus extensions (such as nautilus-open-terminal, or the file-roller extension for extracting files) then you'll need to build and install those with the same prefix in order for Nautilus to find them.
adam
On Thu, Apr 25, 2013 at 5:51 AM, Adam Dingle <adam medovina org> wrote:
Shyal,
to run Nautilus or any other program from a custom path you only need to do two things:
1. Make sure that the custom path appears in your PATH before other system directories. In your case you want /custom/path/bin to appear before /usr/bin and /usr/local/bin in your PATH.
2. Make sure that the system can find shared libraries which appear in your custom path. To do this, you'll need to add /custom/path/lib to a file in /etc/ld.so.conf.d/ (or, on older systems which don't have this directory, directly to /etc/ld.so.conf.) Then run ldconfig so the system will update its cache of shared library locations.
That should be all you need to do. It's true that the install has many subfolders (etc, libexec and so on) but since you've configured with --prefix=/custom/path, the binary you've built will look for those subfolders under /custom/path. cheers -
div>
adam
On Thu, Apr 25, 2013 at 4:11 AM, Shyal Beardsley <shyalb gmail com> wrote:
Hi,
./configure --prefix=/custom/path/
make install
This does the trick for installing it in a different path, however I'm not certain how to get the system to run it form there. I'm running CentOS release 6.3 (Final).
Adding /custom/path to my $PATH doesn't seem to do the trick, as the install has many other subfolders, i.e bin, etc, lib, libexec, share.
I'm guessing Centos is loading /usr/local/bin/nautilus regardless of what's in the path anyway.
I'm asking because I'd like to release these changes across (many) multiple machines, and installing this patch on each machine is not a feasible solution.
Thanks in advance for your help.
Shyal Beardsley
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]