Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 614911
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T18:09:45+00:00 2026-05-13T18:09:45+00:00

I’m maintaining a perl script which runs an automated install of our base server

  • 0

I’m maintaining a perl script which runs an automated install of our base server software. One of the new requirements is to install the Inline::Java module.

Our usual strategy of installing using Yum seems to fall down as there’s no Inline::Java available in yum. I can’t find an RPM release for it so can’t install as an RPM. The only options seem to be installing through CPAN or shipping the tar and having a step which identifies the SDK location and runs ‘perl Makefile.PL J2SDK=; make; make install’.

Instinctually I think that’s a little shaky for an automated install, I’ve had problems with CPAN installs failing in the past and I don’t really want to have to make on a live server, but I can’t think of a better option.

The other option I considered was just shipping the .pm file, placing it in a user defined directory and using ‘use lib’ to define that as a location but due to the way Inline::Java works I don’t think this is possible, it needs the location of the InlineJavaServer and such too.

Does anyone have a better solution or an opinion on which of the ones proposed above is the best?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T18:09:46+00:00Added an answer on May 13, 2026 at 6:09 pm

    Inline::Java will look for InlineJavaServer.jar and the other files it needs in the same location as the Inline/Java.pm file. Copying the whole distribution from the install directory on one machine and copying it to another machine (with the same architecture) isn’t as crazy as it sounds. If you only have a few different systems (not all linux, 32 bit vs 64 bit, perl 5.6 vs perl 5.10, etc.), it is tractable to make a separate package for each system.

    There is some install-time configuration in Inline::Java, including specifying the default Java installation to use. But this (and other default configurations) can always be overridden with environment variables like PERL_INLINE_JAVA_J2SDK (see the Inline::Java perldoc for the complete list). You could package Inline::Java with your own custom module, say,
    MyCompany::InlineJavaConfig, that can set the appropriate environment variables before the Inline::Java module gets loaded in each script.

    There’s some other install-time configuration like whether to configure JNI and other native support. It might be a little dicier to copy the files that support these features from one machine to another. But I can’t think of any reason off-hand that it wouldn’t work.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build
I'm making a simple page using Google Maps API 3. My first. One marker
I have a bunch of posts stored in text files formatted in yaml/textile (from
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString
I am trying to loop through a bunch of documents I have to put
I have some data like this: 1 2 3 4 5 9 2 6

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.