Perl - Error loading module.


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Perl - Error loading module.
# 8  
Old 06-20-2009
Consider reinstall MIME::Base64. This module is actually written in C, and it seems like the error is suggesting that there is a version mismatch between the Perl side of the module, and the object side of the module (i.e. the C XS implementation).

If you google, you should find something similar, like this:
More on "IO object version does not match bootstrap parameter" error

Take a look at Dave's response.
# 9  
Old 06-20-2009
A couple of things to consider.

First, the ~/.profile is not the only file sourced during an interactive login. Depending on the shell there are also files located in /etc/ that are sourced. So, you may still not have the entire environment.

Second, you really don't need the entire profile, but finding exactly what you do need may be a problem. Remember cron is not using a 'login' environment, so somethings may even be skipped when spawning a shell. I would start with setting a secure PATH or even hard-coding the full paths in your shell wrapper. You can add a call to 'env' at the top of your wrapper and redirect the output to a file. Then when you run it manually and via cron, you can see the differences in the environment. You obviously found that the perl binary was not in your path.

Since the module you mention is C based, there is a good chance that a necessary library or binary dependency is not available in your environment when running via cron. You may need to add LD_LIBRARY_PATH or LD_RUN_PATH. You can execute perl with the '-V' option to see how the binary was compiled. This may give you a clue on what libraries and paths are needed. Another thing to look at is using 'ldd' against any binaries to see their library dependencies.

I hope this helps.

- B
# 10  
Old 06-21-2009
@bwhitehd
I mentioned LD_LIBRARY_PATH in my .profile ,which executed in my launch.sh script. So
when running thru cron ,I am not supposed to miss anything.!
@cbkihong
Reinstall MIME::Base64 ,looks like a promising option.

~Thanks
Coolbhai
coolbhai
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Perl module error in testing

PERL MODULE : To debug my perl module code in test environment. I have taken production module to the test in the my home path directory and was trying to test it by changing the below path in my test code. But still i am getting the error to debug it. can you please let me knw whether i am... (13 Replies)
Discussion started by: ramkumar15
13 Replies

2. Fedora

Nvidia Module Not Loading (Desktop Gone)

Well, I followed the steps in the Debian wiki here to install the drivers for the following video card: $ lspci | grep VGA 03:00.0 VGA compatible controller: NVIDIA Corporation GF104 (rev a1)I confirmed the correct driver is installed. As you probably see I've tried this a few times and a few... (1 Reply)
Discussion started by: Azrael
1 Replies

3. UNIX for Advanced & Expert Users

Problem loading cpufreq module

I'd like to install cpufreq modules on my server . I tried sudo modprobe acpi-cpufreq but got the error FATAL: Error inserting acpi_cpufreq (/lib/modules/2.6.18-238.12.1.el5xen/kernel/arch/x86_64/kernel/cpufreq/acpi-cpufreq.ko): No such device cat /proc/cpuinfo gives this ... (11 Replies)
Discussion started by: vishwamitra
11 Replies

4. Windows & DOS: Issues & Discussions

Strawberry perl - New TK module installation error

Hi, I am struggling in installing TK module for strawberry perl. I downloaded TK804 module, extracted to a folder, kept in c:/strawberry/perl/lib path, then from tht path 1) perl makefile.pl 2)dmake 3)dmake test 4)dmake install During perl makefile.pl it is giving error as... (3 Replies)
Discussion started by: vasanth.vadalur
3 Replies

5. Shell Programming and Scripting

calling perl subroutine from perl expect module

All, Is it possible to call a subroutine from the perl expect module after logging to a system that is within the same program. My situation is I need to run a logic inside a machine that I'm logging in using the expect module, the logic is also available in the same expect program. Thanks,... (5 Replies)
Discussion started by: arun_maffy
5 Replies

6. Solaris

Loading Kernel module at boot

Is there any link/tutorial on loading Solaris kernel modules at boot time?? (0 Replies)
Discussion started by: unisolin
0 Replies

7. Shell Programming and Scripting

perl module error

Hi I am working on XMLDiff utility which is working only thing which is bug in this utility is that i used Excel file as the output file so that user can perform some operations on it ... now what i am doing is i am using Spreadsheet::Writeexcel module and its giving me problems ... flow... (0 Replies)
Discussion started by: zedex
0 Replies

8. Linux

problem with kernel module loading

Hi masters, I am new to linux and unix forum and this is my first forum. So please excuse if I am not giving sufficient information. I will give them on request. I have created a bandwidth manager module. I am using a 2.6.9 kernel and in Red Hat 3.4.3 distribution. But when i run make... (1 Reply)
Discussion started by: iamjayanth
1 Replies

9. UNIX and Linux Applications

help: error in installing perl module DBD::mysql

Hi, I am trying to install perl module DBD::mysql and don't know how to resolve the following: # make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/00base.............ok 3/5install_driver(mysql) failed: Can't load... (3 Replies)
Discussion started by: Yogesh Sawant
3 Replies

10. Programming

Dynamically loading a module

Hi there: Thanks for clicking in first. I have a question here. I have a module that needs to be dynamically loaded when another piece of code needs it at runtime. I know that I will have to make a soname file before I can use it dynamically. My question is what commad I should use to make... (2 Replies)
Discussion started by: yanhu
2 Replies
Login or Register to Ask a Question