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

  • SEARCH
  • Home
  • 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 7848041
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T18:04:15+00:00 2026-06-02T18:04:15+00:00

I need advice about the following: option 1 I run the script /usr/local/bbp/api/bbpinstaller.pl from

  • 0

I need advice about the following:

option 1

I run the script /usr/local/bbp/api/bbpinstaller.pl from /var/tmp directory in my Linux machine and there are no problem

option 2

I create new script – script.pl under /var/tmp

and then I create link from /var/tmp/script.pl to /etc/rc3.d/S99script.pl ( by ln -s )

so S99script.pl is link to /var/tmp/script.pl

and script.pl execute the /usr/local/bbp/api/bbpinstaller.pl

 more /etc/rc3.d/script.pl 


 #!/bin/bash 


 /usr/local/bbp/api/bbpinstaller.pl

 .
 .
 . 

my problem :

when the script bbpinstaller.pl run after reboot from /etc/rc3.d/S99script.pl then I get the following errors ( /usr/local/bbp/api/bbpinstaller.pl run from S99script.pl )

     Can't locate Term/ReadKey.pm in @INC (@INC      contains: /etc/bbp/shared /usr/perl5/5.8.4/lib/sun4-solaris-     64int /usr/perl5/5.8.4/lib /usr/perl5/site_perl/5.8.4/sun4-
    solaris-    64int /usr/perl5/site_perl/5.8.4 /usr/perl5/site_perl /usr/perl5/vendor_perl/5.8.4/sun4-    solaris-64int /usr/perl5/vendor_perl/5.8.4 /usr/perl5/vendor_perl
    . ) at /usr/local/bbp/api/bbpinstaller.pl line 25.
     BEGIN failed--compilation aborted at /usr/local/bbp/api/bbpinstaller.pl line 25.

in /usr/local/bbp/api/bbpinstaller.pl script , I have the following perl modules:

 #################################
 #       Modules imported
 #################################
 use Config;
 use Getopt::Long;
 use File::Find;
 use English;
 use Sys::Hostname;
 $File::Find::dont_use_nlink=1;
 use lib "/etc/bbp/shared";
 use Term::ReadKey qw(GetTerminalSize);
 use Cwd 'abs_path';
 require "bbp_globals.pl";
 require "bbp_functions.pl";

the PATH of the file ReadKey.pm

  /usr/local/lib/perl5/site_perl/5.8.7/sun4-solaris-thread-multi/Term/ReadKey.pm

please help me to understand . what the problem here ??? ( I not have allot experience with Perl )

  • 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-06-02T18:04:16+00:00Added an answer on June 2, 2026 at 6:04 pm

    By default the os perl is /usr/bin/perl which has all its modules in /usr/perl5/site_perl/5.8.4 /usr/perl5/site_perl. Since running the script via rc3 uses root’s standard path and standard lib, it won’t find your custom perl in /usr/local/bin and thus won’t find your site-lib in /usr/local/lib. So you need to modify your calling script “/etc/rc3.d/script.pl” which is a bash script (should probably be call script.sh but that’s symantics) to include /usr/local/bin in the path, ie: export PATH=/usr/local/bin:${PATH}. That’ll pre-append the /usr/local/bin to the front of the PATH and then your perl in /usr/local/bin will be called instead of /usr/bin/perl. So change the script.pl to:

    
    #!/bin/bash
    export PATH=/usr/local/bin:${PATH}
    /usr/local/bbp/api/bbpinstaller.pl
    
    

    or call your script with your perl.

    #!/bin/bash
    
    /usr/local/bin/perl /usr/local/bbp/api/bbpinstaller.pl
    
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

need advice about the following with the following ksh script I actually copy file1
Im starting with XNA and i need an advice about the following. I have
I need an advice about how to create new string array from 4 different
I need your advice about framework selection (Java vs Mono) for a new large
I need advice on the following HTML: <!-- Beginning of ROW !--> <div id="row1">
I need advice on how to change the file formatted following way file1: A
I'd need advice on following situation with Oracle/PostgreSQL: I have a db table with
I really need advice on how to do the following. I have tried several
I need advice on what I need to do to make the following two
I would like some advice about the following Makefile. It works fine, but it

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.