LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-04-2006, 11:14 PM   #1
jazman
LQ Newbie
 
Registered: May 2006
Posts: 13

Rep: Reputation: 0
Linux Interpreter


Hi there

I have a windows machine here with perl installed.
My script runs beatifully.

Its uses ftp and copy functions which it grabs form c:\perl\lib\ftp and file respectively.

The linux machine I need them to run on has none of this. I am unable to modify this perl version. I run my script and it dies trying to find these functions. Can I and where would I copy these .pm files on the linux machine so that when my script executes it would recognise them?

Cheers
 
Old 06-04-2006, 11:18 PM   #2
mimithebrain
Member
 
Registered: Nov 2003
Location: ~
Distribution: Ubuntu 10.04
Posts: 843
Blog Entries: 1

Rep: Reputation: 30
try installing the perl ftp packages available for your distro.

Debian:
use synaptic

Mandriva:
use the GUI or rpm.pbone.net
 
Old 06-04-2006, 11:28 PM   #3
jazman
LQ Newbie
 
Registered: May 2006
Posts: 13

Original Poster
Rep: Reputation: 0
hmmm

Well Im not too sure what its using...

Its a commview linux firewall thing... ANd me knowing 0 about linux I have no idea what mandriva is?
 
Old 06-05-2006, 12:18 AM   #4
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545

Rep: Reputation: 57
The .pm files should go in /usr/lib/perl5/site_perl/current/. Obviously from there they need their directory structure, eg. IO/Zlib.pm but you get thhe drift.
 
Old 06-05-2006, 12:40 AM   #5
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
It is easier to use perl's command prompt to install the modules that your script needs than using the package programs or copying the .pm file to the correct location. This is very, very easy than you think. ACtually it is easier than the rpm or deb installer.

As root type `perl -MCPAN -e shell`. Then type `install [module name]`. After you are done installing all the modules, type exit. Do not forget to set the #! path so bash can find the right interpreter. bash will assume it is either bash or sh. Usually the path to perl is "/usr/bin/perl". Some modules may need to be compiled, so you may want to install the gcc compiler and many other headers although you have to use package installer which can be pain in the ass to install rpm files.
 
Old 06-05-2006, 01:24 AM   #6
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545

Rep: Reputation: 57
Actually yeah, what Electro said

Not a Perl person so I'm always forgetting CPAN even exists but it's off the charts easy to use
 
Old 06-05-2006, 07:46 AM   #7
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Quote:
Originally Posted by jazman
Its a commview linux firewall thing...
What does this mean?
 
Old 06-05-2006, 10:27 AM   #8
mimithebrain
Member
 
Registered: Nov 2003
Location: ~
Distribution: Ubuntu 10.04
Posts: 843
Blog Entries: 1

Rep: Reputation: 30
The package to install for Ubuntu and debian based distributions is libnet-perl.
It must be pretty close for all other distros...

jazman, what distro do you use?
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Where is the Python Interpreter? Chomper Programming 8 01-15-2005 09:56 PM
bad interpreter???? yenonn Programming 4 09-25-2004 05:21 AM
Installing Oracle Apps 11i in Redhat 9 - Linux "bad interpreter" error msoares Linux - Newbie 4 07-14-2004 09:45 PM
interpreter gr33ndata Programming 5 04-23-2004 11:10 AM
java interpreter matt_w_lambert Programming 2 07-07-2003 06:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09: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