LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 03-23-2006, 10:32 PM   #1
Balarabay1
Member
 
Registered: Feb 2006
Location: Florida
Distribution: SUSE 11.0/x86 KDE
Posts: 334

Rep: Reputation: 30
How do I run a Perl program?


I'm trying to run the following file(small file): kdcpi-0.0.2.tar.gz


I downloaded it and extracted the files, but I can't get it to run. I'd like to use it to download pictures from my Kodak DC210+ Digital Camera. If someone else here can download this file(Type the file name on google), and tell me what steps I need to take to get it to run, that would be a huge favor. Thanks Alot!
 
Old 03-24-2006, 12:40 AM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
What errors did you get when you tried to make it run? Also, have you checked the path to perl in the first line of the script is correct (and that you have perl installed)?
 
Old 03-24-2006, 02:01 AM   #3
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: Ubuntu
Posts: 3,517

Rep: Reputation: 58
I have replied to your other thread. You need to install perl-gtk2 in order to get the graphical interface going. The coomand-line version should work already. Both applications can be started with ./kdcpi(-gtk) from the directory where they are in. With the rest I can't help, since I don't have this camera. It seems like you need to specify the device to which the camera is attached.
 
Old 03-24-2006, 07:37 AM   #4
Balarabay1
Member
 
Registered: Feb 2006
Location: Florida
Distribution: SUSE 11.0/x86 KDE
Posts: 334

Original Poster
Rep: Reputation: 30
OK, I do have Perl installed, I checked in the Software Management section of YAST

I can click on kdcpi - it says this file is an executable file. I click on it , it then goes into terminal , then automatically closes out of terminal. When I type the following in terminal, I get this>>>>>doug@linux:~/kdcpi-0.0.2> ./kdcpi
usage:
./kdcpi port speed command [ command arguments ]


Is this normal??? How do I get it to download...etc. BTW>>>I'm using the NON-GRAPHICAL version 1st to see if it works before installing the graphical one.
 
Old 03-24-2006, 07:49 AM   #5
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: Ubuntu
Posts: 3,517

Rep: Reputation: 58
Quote:
I'm using the NON-GRAPHICAL version 1st to see if it works before installing the graphical one.
Don't! Get the graphical version going, it'll be much easier since there doesn't seem to be a good documentation. But have a look at the README for sample usage.

EDIT:
Quote:
Is this normal???
Yes. The software is telling you that it requires further information (port, speed and command).
'Port' is the device to which the camera is connected, 'speed' is a baud-rate for data transfer (e.g. 9600) and 'command' is what you want the software to do for you (e.g. list).

Last edited by abisko00; 03-24-2006 at 07:54 AM.
 
Old 03-24-2006, 03:42 PM   #6
Balarabay1
Member
 
Registered: Feb 2006
Location: Florida
Distribution: SUSE 11.0/x86 KDE
Posts: 334

Original Poster
Rep: Reputation: 30
I deleted the Non-Graphical version and downloaded the Graphical version

When I go to run kdcpi-gtk, I get this >>

doug@linux:~/kdcpi-0.0.3> kdcpi-gtk
Can't locate Gtk.pm in @INC (@INC contains: /usr/lib/perl5/5.8.7/i586-linux-thread-multi /usr/lib/perl5/5.8.7 /usr/lib/perl5/site_perl/5.8.7/i586-linux-thread-multi /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.7/i586-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.7 /usr/lib/perl5/vendor_perl .) at ./kdcpi-gtk line 31.
BEGIN failed--compilation aborted at ./kdcpi-gtk line 31.
 
Old 03-25-2006, 05:17 AM   #7
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: Ubuntu
Posts: 3,517

Rep: Reputation: 58
Did you install perl-gtk?
 
Old 03-25-2006, 06:54 AM   #8
Balarabay1
Member
 
Registered: Feb 2006
Location: Florida
Distribution: SUSE 11.0/x86 KDE
Posts: 334

Original Poster
Rep: Reputation: 30
Do I open kdcpi-gtk in terminal and type the chmod a+x command?

Or do I install it another way? Probably not installed, just downloaded and extracted. Thanks!
 
Old 03-25-2006, 02:38 PM   #9
Balarabay1
Member
 
Registered: Feb 2006
Location: Florida
Distribution: SUSE 11.0/x86 KDE
Posts: 334

Original Poster
Rep: Reputation: 30
I checked YAST Software Management

Perl programs, and all associated compiler, etc programs are installed.
 
  


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
Cant Run Perl from VIM! simsjr Programming 6 04-07-2005 04:16 PM
Perl program control MWFlint Programming 4 12-08-2004 12:59 PM
Viewing program messages when program isn't run from command line? Locura Linux - Software 1 09-27-2003 08:19 AM
can't run perl Makefile.PL foop37 Linux - Software 2 08-05-2003 12:05 PM
Getting Perl to run mingtim32001 Linux - Software 0 01-21-2002 11:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

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