473,463 Members | 1,465 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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 8783
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
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.