Discussion:
Hitting issue of Inline::Config existance
Piyush Verma
2013-04-02 04:27:05 UTC
Permalink
Hi,

I am hitting issue.
*
*
* Failed to load Inline Java:As of Inline v0.30, use of the Inline::Config
module is no longer supported*
*or allowed. If Inline::Config exists on your system, it can be removed. See
*
*the Inline documentation for information on how to configure Inline.*
*(You should find it much more straightforward than Inline::Config :-)*

Please let me know where to find Inline::Config, to resolve this issue.
Please point out if there is any other way of resolving this issue.

Coding design I am using:-
I have written a wrapper of Inline Java which calls method Inline.
If any module want to use java method, it first load inline java.
(ps x|grep inlineJava and get port number if already running otherwise
start new inline java server in new port.)

I am using thread programming also in my project and this issue is coming
after thread module is successfully executed. After that I am not able to
load inline java.
--
*Piyush Verma*
s***@public.gmane.org
2013-04-03 04:53:02 UTC
Permalink
-----Original Message-----
From: Piyush Verma
Sent: Tuesday, April 02, 2013 3:27 PM
To: inline-***@public.gmane.org
Subject: Hitting issue of Inline::Config existance
Post by Piyush Verma
Hi,
I am hitting issue.
*
*
* Failed to load Inline Java:As of Inline v0.30, use of the Inline::Config
module is no longer supported*
*or allowed. If Inline::Config exists on your system, it can be removed. See
*
*the Inline documentation for information on how to configure Inline.*
*(You should find it much more straightforward than Inline::Config :-)*
Wow - ancient history. I didn't know there ever was an Inline::Config
module.
Post by Piyush Verma
Please let me know where to find Inline::Config, to resolve this issue.
Relative to where Inline.pm is installed, you would find this Config.pm in
the ./Inline folder.
But maybe something else is going on - surely, you cannot be using
Inline-0.26 or earlier.
Post by Piyush Verma
Please point out if there is any other way of resolving this issue.
The error comes about from this line of code (in version 0.52 of Inline.pm):

croak M14_usage_Config() if %main::Inline::Config::;

So, for you, %main::Inline::Config:: is returning true. I guess that means
Inline::Config got loaded. (Can it mean anything else ?)

What do you get when you run:

perl -MInline::Config -le 'for(keys(%INC)){print "$_: $INC{$_}"}'

That should give at least confirm whether (and where) Inline::Config is to
be found.

NOTE:
If you're on MS Windows, you need to instead run:
perl -MInline::Config -le "for(keys(%INC)){print \"$_: $INC{$_}\"}"

What OS are you using ? ... which versions of Inline and Inline::Java ? ...
and which version of perl ?

Cheers,
Rob
Piyush Verma
2013-04-03 11:28:08 UTC
Permalink
Hi,

Please find below the answer of above questions:-
Post by Piyush Verma
Post by s***@public.gmane.org
What OS are you using ? ... which versions of Inline and Inline::Java ?
... and which version of perl ?
[***@prome-2s-dhcp82 5.10.0]# cat /proc/version
Linux version 2.6.18-348.3.1.el5 (mockbuild-t2f/um9L7dgPk0tSmcHan2D2FQJk+8+***@public.gmane.org) (gcc
version 4.1.2 20080704 (Red Hat 4.1.2-54)) #1 SMP Mon Mar 11 19:40:14 EDT
2013
[***@prome-2s-dhcp82 5.10.0]# perl -MInline -e 'print "$Inline::VERSION\n"'
0.46
[***@prome-2s-dhcp82 5.10.0]# perl -MInline::Java -e 'print
"$Inline::Java::VERSION\n"'
0.52
[***@prome-2s-dhcp82 5.10.0]# perl -v

This is perl, v5.10.0 built for i686-linux-thread-multi-64int

Copyright 1987-2007, Larry Wall

Perl may be copied only under the terms of either the Artistic License or
the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.



I checked with Inline directory Inline:Config is not present.
[***@prome-2s-dhcp82 5.10.0]# perl -MInline::Config -le
'for(keys(%INC)){print "$_: $INC{$_}"}'
Can't locate Inline/Config.pm in @INC (@INC contains: /root/workspace/vtaf
/usr/local/lib/perl5/5.10.0/i686-linux-thread-multi-64int
/usr/local/lib/perl5/5.10.0
/usr/local/lib/perl5/site_perl/5.10.0/i686-linux-thread-multi-64int
/usr/local/lib/perl5/site_perl/5.10.0 .).
BEGIN failed--compilation aborted.


Could there be any other reason of this issue/ or at run time this module
is generate while running the code.


Regards,
Piyush
-----Original Message----- From: Piyush Verma
Sent: Tuesday, April 02, 2013 3:27 PM
Subject: Hitting issue of Inline::Config existance
Hi,
Post by Piyush Verma
I am hitting issue.
*
*
* Failed to load Inline Java:As of Inline v0.30, use of the Inline::Config
module is no longer supported*
*or allowed. If Inline::Config exists on your system, it can be removed. See
*
*the Inline documentation for information on how to configure Inline.*
*(You should find it much more straightforward than Inline::Config :-)*
Wow - ancient history. I didn't know there ever was an Inline::Config
module.
Please let me know where to find Inline::Config, to resolve this issue.
Relative to where Inline.pm is installed, you would find this Config.pm in
the ./Inline folder.
But maybe something else is going on - surely, you cannot be using
Inline-0.26 or earlier.
Please point out if there is any other way of resolving this issue.
croak M14_usage_Config() if %main::Inline::Config::;
So, for you, %main::Inline::Config:: is returning true. I guess that means
Inline::Config got loaded. (Can it mean anything else ?)
perl -MInline::Config -le 'for(keys(%INC)){print "$_: $INC{$_}"}'
That should give at least confirm whether (and where) Inline::Config is to
be found.
perl -MInline::Config -le "for(keys(%INC)){print \"$_: $INC{$_}\"}"
What OS are you using ? ... which versions of Inline and Inline::Java ?
... and which version of perl ?
Cheers,
Rob
--
*Piyush Verma*
s***@public.gmane.org
2013-04-04 07:14:37 UTC
Permalink
-----Original Message-----
From: Piyush Verma
Sent: Wednesday, April 03, 2013 10:28 PM
To: sisyphus1-sFbbPxZDHXw0n/***@public.gmane.org
Cc: inline-***@public.gmane.org
Subject: Re: Hitting issue of Inline::Config existance
Post by Piyush Verma
I checked with Inline directory Inline:Config is not present.
'for(keys(%INC)){print "$_: $INC{$_}"}'
/usr/local/lib/perl5/5.10.0/i686-linux-thread-multi-64int
/usr/local/lib/perl5/5.10.0
/usr/local/lib/perl5/site_perl/5.10.0/i686-linux-thread-multi-64int
/usr/local/lib/perl5/site_perl/5.10.0 .).
BEGIN failed--compilation aborted.
Could there be any other reason of this issue/ or at run time this module
is generate while running the code.
This script demonstrates that Inline::Config does not have to be loaded for
%main::Inline::Config:: to be true:

#######################################
#!perl

$Inline::Config::some{'key'} = 'val';

if(%main::Inline::Config::) {
for(keys(%main::Inline::Config::)) {
print "$_\n";
}
}

#######################################

For me, that outputs:
some

So ... let's see the keys your %main::Inline::Config:: contains.
Find the lib/auto/Inline/check_config_file.al that was installed and, in
that file, just before the line:

croak M14_usage_Config() if %main::Inline::Config::;

insert this code (from above script):

if(%main::Inline::Config::) {
for(keys(%main::Inline::Config::)) {
print "$_\n";
}
}

Then run your troublesome script, and see if we can make any sense of the
keys that are reported.

(At this stage I have absolutely no idea what the problem is.)

Cheers,
Rob

Loading...