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

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

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

 



helium_ninja
New User

Apr 11, 2011, 2:11 PM

Post #1 of 4 (1062 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


Quote
Can't locate LinuxGpib.pm in @INC (@INC contains:
/tester/Filters
/usr/local/lib64/perl5
/usr/local/share/perl5
/usr/lib64/perl5
/usr/share/perl5
/usr/local/lib64/perl5/site_perl/5.10.0/x86_64-linux-thread-multi
/usr/local/lib/perl5/site_perl/5.10.0
/usr/lib64/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.10.0
/usr/lib/perl5/vendor_perl
/usr/lib/perl5/site_perl .) at runTcProbe_Trisensor.pl line 10.
BEGIN failed--compilation aborted at runTcProbe_Trisensor.pl 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

http://linux-gpib.sourceforge.net/

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


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?


rovf
Veteran

Apr 12, 2011, 7:06 AM

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

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


helium_ninja
New User

Apr 12, 2011, 10:40 AM

Post #3 of 4 (1050 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....


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



rovf
Veteran

Apr 13, 2011, 12:45 AM

Post #4 of 4 (1047 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