LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-20-2011, 02:40 PM   #1
rohit.dhaval1
Member
 
Registered: Jul 2009
Posts: 39
Blog Entries: 2

Rep: Reputation: 0
copy /bin/perl to /opt/bin/perl. What all things to consider while copying?


Hi There,

Say, I want to copy any GNU tool installed from one folder to other, for example from /bin to /opt/bin. How should I go about it?

What other things do I need to copy. Like libraries etc.

Also, I do not want to reinstall the tool.

Please guide me through all the implications.

Many thanks in advance.
 
Old 02-20-2011, 02:44 PM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Linux Mint
Posts: 8,511

Rep: Reputation: 884Reputation: 884Reputation: 884Reputation: 884Reputation: 884Reputation: 884Reputation: 884
From the top of my head.
Add /opt/bin to your path
Adjust scripts, if they use perl

But more important, why do you want to do that?

Kind regards
 
1 members found this post helpful.
Old 02-20-2011, 02:52 PM   #3
rohit.dhaval1
Member
 
Registered: Jul 2009
Posts: 39
Blog Entries: 2

Original Poster
Rep: Reputation: 0
Thanks for your help,

Thing is, at my organization, we maintain GNU tools at 2 locations. (example /bin /opt/bin). At one location, tools are standardized that all the users will be using it and, at other, testing takes place whether tool can be deployed in production.

I am asked to copy existing tool from one (testing) location to other (production).

Thank you,

Last edited by rohit.dhaval1; 02-20-2011 at 02:54 PM.
 
Old 02-20-2011, 03:12 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,985
Blog Entries: 11

Rep: Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879
perl comes w/ a host of libs and modules, and a fairly complex
directory structure. Simply copying the executable won't do
you much good. What distro are you using? I'd go and grab a
perl source package for that distro, modify the configuration
to point to something under /opt, and tackle it that way.



Cheers,
Tink
 
1 members found this post helpful.
Old 02-20-2011, 04:06 PM   #5
rohit.dhaval1
Member
 
Registered: Jul 2009
Posts: 39
Blog Entries: 2

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Tinkster View Post
perl comes w/ a host of libs and modules, and a fairly complex
directory structure. Simply copying the executable won't do
you much good. What distro are you using? I'd go and grab a
perl source package for that distro, modify the configuration
to point to something under /opt, and tackle it that way.



Cheers,
Tink
Thanks sir, (Tinkster)

I have compiled and deployed perl many a times in different distros. I thought, Could it not be copied?

Thanks for you help. I think, I got the answer I needed.

I will have to deploy every GNU tool separately to each directory, (/bin and /opt/bin). I guess, it as well holds good for all customized binary codes (Non GNU) written and deployed.

Last edited by rohit.dhaval1; 02-20-2011 at 04:07 PM.
 
  


Reply

Tags
bin, binaries, gnu, libraries, tool


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
doing in perl ----> ps -ef | grep "/bin/sh /opt" matt007 Programming 3 10-02-2009 01:36 AM
Perl Parse .bin file acandria17 Programming 2 07-07-2009 05:42 AM
Regarding # /opt/CTEact/bin/act & /opt/SUNWexplo/bin/explorer not available for x86 rajaniyer123 Solaris / OpenSolaris 6 04-24-2008 09:09 AM
How to run perl scripts outside cgi-bin? xpucto Linux - Server 3 04-20-2007 02:23 AM
cgi-bin error regarding perl script hamish Linux - Software 11 12-09-2004 10:16 AM


All times are GMT -5. The time now is 09:20 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration