473,224 Members | 1,481 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,224 software developers and data experts.

cannot find module in @INC

51
Hello,

i've a script that uses WIN32::OLE which i downloaded from CPAN and installed it by unzipping... i've also added to the script the inclusion lines to @INC in BEGIN phase.

BEGIN{
push @INC, "/work/perl/libwin32-0.28/OLE/lib/";
}

however, it cannot find the .pm even though this file actually exists in this folder ...


"
Can't locate loadable object for module Win32::OLE in @INC (@INC contains: /mswg/opt/lib/perl5/5.6.0/i686-linux /mswg/opt/lib/perl5/5.6.0 /mswg/opt/lib/perl5/site_perl/5.6.0/i686-linux /mswg/opt/lib/perl5/site_perl/5.6.0 /mswg/opt/lib/perl5/site_perl . /work/perl/libwin32-0.28/OLE/lib/ /work/perl/XML-Parser-2.36) at excel.pl line 9
"

do you have any guesses why it fails to do so?



thanks ,
Mar 16 '08 #1
10 8772
numberwhun
3,509 Expert Mod 2GB
Hello,

i've a script that uses WIN32::OLE which i downloaded from CPAN and installed it by unzipping... i've also added to the script the inclusion lines to @INC in BEGIN phase.

BEGIN{
push @INC, "/work/perl/libwin32-0.28/OLE/lib/";
}

however, it cannot find the .pm even though this file actually exists in this folder ...


"
Can't locate loadable object for module Win32::OLE in @INC (@INC contains: /mswg/opt/lib/perl5/5.6.0/i686-linux /mswg/opt/lib/perl5/5.6.0 /mswg/opt/lib/perl5/site_perl/5.6.0/i686-linux /mswg/opt/lib/perl5/site_perl/5.6.0 /mswg/opt/lib/perl5/site_perl . /work/perl/libwin32-0.28/OLE/lib/ /work/perl/XML-Parser-2.36) at excel.pl line 9
"

do you have any guesses why it fails to do so?



thanks ,
It looks like you are using a *nix system. Why are you downloading and manually installing modules instead of using the CPAN interface, which does it all for you?

Either way, if you are choosing to go the hard route of doing the module installation manually, then you will need to really read the documentation before continuing.

There are typically 4 steps to the installation of modules:

DECOMPRESS the file
UNPACK the file into a directory
BUILD the module (sometimes unnecessary)
INSTALL the module.


You did the first one and that was it. I would seriously consider reading the document as it will enlighten you. Also, if you can use the CPAN interface, it would behoove you as it can also perform automatic checking of dependencies and installation of those dependent modules.

Regards,

Jeff
Mar 16 '08 #2
zcabeli
51
thanks for the help buddy, i really learnt something from this article...
i tried to work according to what inscribed there, but i face a compilation error.

the generation of the MakeFile goes almost smoothly (besides one extension which it cannot find)

however, on the 'make' it's unable to locate many files as it be seen in the command output:

make[1]: Entering directory `/home/zcabeli/work/perl/libwin32-0.28/APINet'
gcc -c -fno-strict-aliasing -I/usr/local/include -O2 -march=i386 -mcpu=i686 -DVERSION=\"0.10\" -DXS_VERSION=\"0.10\" -fPIC -I/usr/lib/perl5/5.6.1/i386-linux/CORE Net.c
Net.xs:1:21: windows.h: No such file or directory
Net.xs:3:24: winsock.h: No such file or directory
Net.xs:5:60: lmcons.h: No such file or directory
Net.xs:6:66: lmerr.h: No such file or directory
Net.xs:7:22: lmUseFlg.h: No such file or directory
Net.xs:8:22: lmAccess.h: No such file or directory
Net.xs:9:22: lmAPIBuf.h: No such file or directory
Net.xs:10:21: lmwksta.h: No such file or directory
Net.xs:13:22: lmServer.h: No such file or directory
make[1]: *** [Net.o] Error 1
make[1]: Leaving directory `/home/zcabeli/work/perl/libwin32-0.28/APINet'
make: *** [subdirs] Error 2

i'm not sure what these files mean to do, but i believe it might be connected to windows and not unix (my OS), perhaps i should download another version of this package ...
Mar 16 '08 #3
numberwhun
3,509 Expert Mod 2GB
thanks for the help buddy, i really learnt something from this article...
i tried to work according to what inscribed there, but i face a compilation error.

the generation of the MakeFile goes almost smoothly (besides one extension which it cannot find)

however, on the 'make' it's unable to locate many files as it be seen in the command output:

make[1]: Entering directory `/home/zcabeli/work/perl/libwin32-0.28/APINet'
gcc -c -fno-strict-aliasing -I/usr/local/include -O2 -march=i386 -mcpu=i686 -DVERSION=\"0.10\" -DXS_VERSION=\"0.10\" -fPIC -I/usr/lib/perl5/5.6.1/i386-linux/CORE Net.c
Net.xs:1:21: windows.h: No such file or directory
Net.xs:3:24: winsock.h: No such file or directory
Net.xs:5:60: lmcons.h: No such file or directory
Net.xs:6:66: lmerr.h: No such file or directory
Net.xs:7:22: lmUseFlg.h: No such file or directory
Net.xs:8:22: lmAccess.h: No such file or directory
Net.xs:9:22: lmAPIBuf.h: No such file or directory
Net.xs:10:21: lmwksta.h: No such file or directory
Net.xs:13:22: lmServer.h: No such file or directory
make[1]: *** [Net.o] Error 1
make[1]: Leaving directory `/home/zcabeli/work/perl/libwin32-0.28/APINet'
make: *** [subdirs] Error 2

i'm not sure what these files mean to do, but i believe it might be connected to windows and not unix (my OS), perhaps i should download another version of this package ...
As I had mentioned, you will find that there are many modules that have dependencies. Those dependencies are usually other modules that have to already be installed before the software will fully install.

Is there any reason that you cannot use the CPAN interface instead of manual build? During the setup of the CPAN interface, you can set it up to "follow", which means it will automatically download and install any dependencies. That way, when you do an installation of a module, when it is done, it should just work.

Regards,

Jeff
Mar 16 '08 #4
zcabeli
51
hello again Jeff,

i think i learnt how to use the CPAN interface, but it always fails in installing new packages.

for example, i tried to install Bundle::CPAN and that's the log notes i got...
it's strange since the file Bundle-CPAN-1.857.tar.gz exist, as opposed to what's written in the log message... do you have any idea what might lead to this fault ?

cpan> install Bundle::CPAN
CPAN: Storable loaded ok
Going to read yes/Metadata
Database was generated on Sun, 16 Mar 2008 12:30:47 GMT

CPAN: MD5 security checks disabled because MD5 not installed.
Please consider installing the MD5 module.

gzip: yes/sources/authors/id/A/AN/ANDK/Bundle-CPAN-1.857.tar.gz: No such file or directory
gzip: yes/sources/authors/id/A/AN/ANDK/Bundle-CPAN-1.857.tar.gz: No such file or directory
/bin/tar: yes/sources/authors/id/A/AN/ANDK/Bundle-CPAN-1.857.tar.gz: Cannot open: No such file or directory
/bin/tar: Error is not recoverable: exiting now
Using Tar:/bin/tar xvf yes/sources/authors/id/A/AN/ANDK/Bundle-CPAN-1.857.tar.gz:
/bin/tar: yes/sources/authors/id/A/AN/ANDK/Bundle-CPAN-1.857.tar.gz: Cannot open: No such file or directory
/bin/tar: Error is not recoverable: exiting now
Couldn't untar yes/sources/authors/id/A/AN/ANDK/Bundle-CPAN-1.857.tar.gz


thanks alot,
Mar 16 '08 #5
numberwhun
3,509 Expert Mod 2GB
hello again Jeff,

i think i learnt how to use the CPAN interface, but it always fails in installing new packages.

for example, i tried to install Bundle::CPAN and that's the log notes i got...
it's strange since the file Bundle-CPAN-1.857.tar.gz exist, as opposed to what's written in the log message... do you have any idea what might lead to this fault ?

cpan> install Bundle::CPAN
CPAN: Storable loaded ok
Going to read yes/Metadata
Database was generated on Sun, 16 Mar 2008 12:30:47 GMT

CPAN: MD5 security checks disabled because MD5 not installed.
Please consider installing the MD5 module.

gzip: yes/sources/authors/id/A/AN/ANDK/Bundle-CPAN-1.857.tar.gz: No such file or directory
gzip: yes/sources/authors/id/A/AN/ANDK/Bundle-CPAN-1.857.tar.gz: No such file or directory
/bin/tar: yes/sources/authors/id/A/AN/ANDK/Bundle-CPAN-1.857.tar.gz: Cannot open: No such file or directory
/bin/tar: Error is not recoverable: exiting now
Using Tar:/bin/tar xvf yes/sources/authors/id/A/AN/ANDK/Bundle-CPAN-1.857.tar.gz:
/bin/tar: yes/sources/authors/id/A/AN/ANDK/Bundle-CPAN-1.857.tar.gz: Cannot open: No such file or directory
/bin/tar: Error is not recoverable: exiting now
Couldn't untar yes/sources/authors/id/A/AN/ANDK/Bundle-CPAN-1.857.tar.gz


thanks alot,
Bundle CPAN aside, have you tried to install the module that you originally started this thread about?

Regards,

Jeff
Mar 16 '08 #6
zcabeli
51
yep, and it gave me almost exactly the same result, although the file libwin32-0.28.tar.gz exists in the specified path:



cpan> install Win32::OLE
CPAN: Storable loaded ok
Going to read yes/Metadata
Database was generated on Sun, 16 Mar 2008 12:30:47 GMT
Running install for module Win32::OLE
Running make for J/JD/JDB/libwin32-0.28.tar.gz

CPAN: MD5 security checks disabled because MD5 not installed.
Please consider installing the MD5 module.

gzip: yes/sources/authors/id/J/JD/JDB/libwin32-0.28.tar.gz: No such file or directory
gzip: yes/sources/authors/id/J/JD/JDB/libwin32-0.28.tar.gz: No such file or directory
/bin/tar: yes/sources/authors/id/J/JD/JDB/libwin32-0.28.tar.gz: Cannot open: No such file or directory
/bin/tar: Error is not recoverable: exiting now
Using Tar:/bin/tar xvf yes/sources/authors/id/J/JD/JDB/libwin32-0.28.tar.gz:
/bin/tar: yes/sources/authors/id/J/JD/JDB/libwin32-0.28.tar.gz: Cannot open: No such file or directory
/bin/tar: Error is not recoverable: exiting now
Couldn't untar yes/sources/authors/id/J/JD/JDB/libwin32-0.28.tar.gz
Mar 16 '08 #7
numberwhun
3,509 Expert Mod 2GB
yep, and it gave me almost exactly the same result, although the file libwin32-0.28.tar.gz exists in the specified path:



cpan> install Win32::OLE
CPAN: Storable loaded ok
Going to read yes/Metadata
Database was generated on Sun, 16 Mar 2008 12:30:47 GMT
Running install for module Win32::OLE
Running make for J/JD/JDB/libwin32-0.28.tar.gz

CPAN: MD5 security checks disabled because MD5 not installed.
Please consider installing the MD5 module.

gzip: yes/sources/authors/id/J/JD/JDB/libwin32-0.28.tar.gz: No such file or directory
gzip: yes/sources/authors/id/J/JD/JDB/libwin32-0.28.tar.gz: No such file or directory
/bin/tar: yes/sources/authors/id/J/JD/JDB/libwin32-0.28.tar.gz: Cannot open: No such file or directory
/bin/tar: Error is not recoverable: exiting now
Using Tar:/bin/tar xvf yes/sources/authors/id/J/JD/JDB/libwin32-0.28.tar.gz:
/bin/tar: yes/sources/authors/id/J/JD/JDB/libwin32-0.28.tar.gz: Cannot open: No such file or directory
/bin/tar: Error is not recoverable: exiting now
Couldn't untar yes/sources/authors/id/J/JD/JDB/libwin32-0.28.tar.gz
Since you are on Unix, I will ask this. Are you trying to run this as yourself, or as a root permissioned user? The best way to run the CPAN interface is with 'sudo'. That is because you will find that root is needed for the installation and sudo permission is definitely needed.

So, I would try running all of this under sudo and see if it works.

Regards,

Jeff
Mar 16 '08 #8
zcabeli
51
hey Jeff,

the thing is that i don't have root permissions.
i just want to install those packages in my local directory.
i tried to run CPAN I/F with 'sudo' but it requested password, which i don't have.

the question is whether i can install packages without being 'root' using CPAN.


thanks again,
zohar
Mar 16 '08 #9
KevinADC
4,059 Expert 2GB
You're loading Win32::OLE onto a Unix box? How do you expect to use it on Unix?
Mar 16 '08 #10
numberwhun
3,509 Expert Mod 2GB
hey Jeff,

the thing is that i don't have root permissions.
i just want to install those packages in my local directory.
i tried to run CPAN I/F with 'sudo' but it requested password, which i don't have.

the question is whether i can install packages without being 'root' using CPAN.


thanks again,
zohar
First, to address my complete oversight that is so kindly pointed out by Kevin, Win32::OLE on a Unix box? I hope you have plans of running this on a Windows machine eventually and not Unix.

Second, most people won't have root to their machine in a work environment, but you may have or be able to get sudo setup by your administrator. If not, how do you plan on installing the modules? The only thing you would be able to do is to get your administrator to do it for you.

Regards,

Jeff
Mar 16 '08 #11

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Jari Aalto+usenet | last post by:
Hi, Where I can specify more linking search directories for a Python module that makes a gcc build? Setting the LD_LIBRARY_PATH on command line does not seem to propagate to the linker. Jari...
1
by: mfjacobs | last post by:
Hello, I was hoping someone here can help me with a problem I am having with the PyXML extension ( ver 0.8.4) and Python 2.4 Thsi is a brand new build of Python. Build with default .configre...
2
by: Sean G. | last post by:
Howdy, I'm working with VS.net 2003 (upgraded from 2002) on Windows 2000 sp3. My web app is deployed on the same machine as VS.net. I'm getting 'Cannot find Keycodev2.dll or invalid keycode'...
1
by: Mullin Yu | last post by:
my web services is reference a vb6 com dll, and if it's registered at the local machine, the web service is working. but, if i put the dll to a z: which is mapping to a network driver and...
3
by: David T. Ashley | last post by:
Hi, Red Hat Enterprise Linux 4.X. I'm writing command-line PHP scripts for the first time. I get the messages below. What do they mean? Are these operating system library modules, or...
0
by: DongWook | last post by:
Dear all, I've a windows application with crystal viewer to show a report (using vb .net 2003). I made a setup project and installed on client machines (no .net and crystal report). The...
0
by: DongWook | last post by:
Hi, I've a windows application with crystal viewer to show a report (using vb .net 2003). I made a setup project and installed on client machines (no .net and crystal report). The application...
1
by: .Net Sports | last post by:
I'm using Persits.upload module in ASP, and when i use the following form pointed to the object I've always used, i get a "The system cannot find the file specified" error pointing to the line of...
7
by: Spectrum | last post by:
I am writing some Python code using the Message Passing Interface (MPI), an API used in parallel computing. There exist a number of Python implementations of MPI, but apparently they all rely on...
1
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.