LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-28-2010, 12:28 PM   #1
zOSGuy
LQ Newbie
 
Registered: Sep 2010
Location: Central NY, USA
Distribution: Debian
Posts: 27

Rep: Reputation: 0
Changing the location a module is loaded from without changing the default path


I'm trying to get my Epson SP7600 printer working correctly, it will not print from gimp with "custom" print sizes (24"x16"), giving a failure in ghostscript, using the default Lenny gutenprint and ghostscript releases. I've downloaded and installed the latest gutenprint version (5.2.6) but it appears that the 5.0 version is what gimp is using...
x@y:~$ whereis gutenprint
gutenprint: /usr/lib/gutenprint /usr/lib64/gutenprint /usr/local/lib/gutenprint /usr/share/gutenprint
The version I want to access is in the 3rd path, /usr/local/lib/gutenprint, the others are the 5.0 version. I'd prefer not having to change the path variable and I don't want to have to rename any of the paths as it will complicate upgrades, as I understand it there's a means to tell the system to find the gutenprint executable in a specific place and that seems the least "dangerous" method to me. Could someone guide me as to how this can be done? If the gutenprint change doesn't solve the issue I'll also be upgrading ghostscript and will need to do the same for it, if neither upgrade fixes the problem I'll be able to report the issue without having to hear the usual "are you using the latest versions?" question.
 
Old 09-28-2010, 01:30 PM   #2
HaroldWho
Member
 
Registered: Nov 2006
Location: southeastern PA
Distribution: Slackware
Posts: 130

Rep: Reputation: 23
Maybe I'm missing something, but why can't you just symlink the file to a link where you want it to be?

Code:
ln -s <path_to_actual_file> <path_desired_linkname>
HTH,

HaroldWho
 
Old 09-28-2010, 02:43 PM   #3
zOSGuy
LQ Newbie
 
Registered: Sep 2010
Location: Central NY, USA
Distribution: Debian
Posts: 27

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by HaroldWho View Post
Maybe I'm missing something, but why can't you just symlink the file to a link where you want it to be?

Code:
ln -s <path_to_actual_file> <path_desired_linkname>
HTH,

HaroldWho
I believe I could do this, but whilst searching the web earlier today on a related issue I stumbled upon a mechanism that seemed simpler to use and maintain and unfortunately I failed to make a note of it. It wasn't "alias" but it was something that appeared to operate similarly, associating a specific path to a command/program, in that particular case it was something issued against ghostscript (gs) telling the OS what when gs was called /x/y/z/ was the path that should be used for the executable. I fear that once I start creating symbolic links things will grow complex and without in-depth notes an upgrade will break something that will take me forever to fix, my last foray into Linux I managed to make a mess of things by installing software outside of the package manager which resulted in having to rebuild much of my work upon upgrade, I'm trying to find the simplest mechanism to use and maintain and do undo/redo once Sid (or whatever) becomes the stable release. Worse comes to worst I'll symlink and pray that I can understand my habitually cryptic notes when it comes time to change something but I'd much prefer something simpler that is tied to the program itself rather than being dependent on modifications to paths and the mechanism I saw but failed to note appeared to be capable of surviving major upgrades with little or no intervention to accommodate these one-off installs. After many years experience in IT I have learned that the k.i.s.s. principle should be the holy grail of programmers and tweakers, and it seems I've seen some allusions to a mechanism that can do what I want in a very simple way.
 
  


Reply



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
Req:Changing Default Location Of ls Command megacreations Red Hat 2 11-08-2006 03:06 PM
Changing emacs' default file location rose_bud4201 Linux - Software 6 11-16-2004 11:01 PM
Changing the default /tmp location nws_linux Linux - Newbie 6 09-16-2004 10:45 AM
Changing default Mozilla location compassman Linux - Software 2 06-26-2004 03:44 PM
changing default mount location MeanJoshGreen Linux - Hardware 3 12-07-2003 02:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:48 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
Open Source Consulting | Domain Registration