CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Perl Programming Help: Beginner:
@INC, use linuxgpib


New User

Apr 11, 2011, 2:11 PM

Post #1 of 4 (2003 views)
@INC, use linuxgpib Can't Post

Hey all, So I'm having some trouble using my National Instrument USB-GPIB cable to do some testing at work, I'm fairly new to the perl language but can manuver around fairly well.

So I guess my main problem is when i try to compile my testing code i get the following errors

Can't locate in @INC (@INC contains:
/usr/lib/perl5/site_perl .) at line 10.
BEGIN failed--compilation aborted at line 10.

Which I'm certain is because the lib "linuxgpib" is not in the location it looks for the library. My first step was to look for the linuxgpib library which i found at the following

downloaded and unpacked, the problem is I do not see anything called linuxgpib inside this unpacked file as well I'm not sure I can tell my program to look at this new directories for the lib

Here is the first few lines of code

use lib "$ENV{HOME}/Filters"; 

use LinuxGpib;
#use hp34401a_subs; #qw(init_dmm); can't get these to work!!!ARGH
#require Erins_perl_stuff; #qw(do_nothing);
use Graphics::GnuplotIF qw(GnuplotIF);

my $device1="AGILENT-34401A"; # name from /etc/gpib.conf addr 21 thermometer
my $device2="AGILENT-34411A"; # name from /etc/gpib.conf addr 22 sample
my $dev1 = LinuxGpib::ibfind($device1) ||
die "Can't open device $device!\n";

Does anyone have any suggestions of what i should try next?


Apr 12, 2011, 7:06 AM

Post #2 of 4 (1994 views)
Re: [helium_ninja] @INC, use linuxgpib [In reply to] Can't Post

There needs to be a file called (note the correct upper/lower case spelling!). Are there no pm files in the software you downloaded?

New User

Apr 12, 2011, 10:40 AM

Post #3 of 4 (1991 views)
Re: [rovf] @INC, use linuxgpib [In reply to] Can't Post

After far to much searching I managed to get the .PM file i was looking for now my problem is when i run the program i get the following error....

perl: symbol lookup error: /usr/local/lib64/perl5/auto/LinuxGpib/ undefined symbol: ibfind


Apr 13, 2011, 12:45 AM

Post #4 of 4 (1988 views)
Re: [helium_ninja] @INC, use linuxgpib [In reply to] Can't Post

How did you do the installation of the Perl part? There seems to be a binary part of the library (i.e. which needs to be compiled). You didn't get any error message from the installation procedure?


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives