Error Installing Env::Sourced


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Error Installing Env::Sourced
# 1  
Old 02-14-2011
Error Installing Env::Sourced

Hello,

I am trying to install Env::Sourced and i get the following error.

Code:
sh: source: not found
sh: include.sh: not found
Unable to determine your shells source program, typically 'source' or '.'

How can i overcome this?

Best Regards,
Christos

Last edited by pludi; 02-14-2011 at 06:46 AM..
# 2  
Old 02-14-2011
What shell are you using, and how are you installing the module (assuming you're talking about the Perl module)? What platform are you on?
# 3  
Old 02-14-2011
Hello,

I am using ksh shell in true 64 platform. The aforementioned error appears when i run the command

perl Makefile.PL

Thank you!
# 4  
Old 02-14-2011
Seems to be an error the way the module assumes the shell handles files. Most shells, by default, do not read any files from the current directory, unless explicitly told to do so (for security reasons). But for the installation and testing phase the module seems to assume just that insecure behavior.

You can quick-fix this by changing line 5 of Makefile.PL to read
Code:
my $env_inc   = './include.sh';

and similar for line 19 of t/sourced.t:
Code:
my $env_inc = './include.sh';

You could also file a bug with the module, but since the last update was in 2005 I doubt that there's a lot of development going on.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Preloading open() for files sourced by tcsh

I am overriding the file open system calls (open, open64, fopen, fopen64, freopen, freopen64) in a dynamic library and setting LD_PRELOAD to point to that library. Here is a sample script I'm testing this on - #!/bin/tcsh source testcsh1.csh source testbash1.sh On RHEL 5.7 (tcsh 6.14.00), the... (2 Replies)
Discussion started by: endgame
2 Replies

2. Shell Programming and Scripting

Perl error with $ENV variable

Hello my friends i have created a perl cgi script to see browser support for text and graphics but $ENV variable is not working , Code is: #!/usr/bin/perl #Author Ravinder kumar # START use warnings; $nongraphic = 'lynx|CERN-Linemode|elinks'; $client = $ENV{'HTTP_USER_AGENT'}; $text... (9 Replies)
Discussion started by: rink
9 Replies

3. Web Development

Deny from env=env-variable Does not work

(Above from Apache docs). On my system, using: SetEnvIf User-Agent Mozilla IsBad=1 Order allow,deny Allow from all Deny from env=IsBad ...I see that environment variable is set (using phpinfo()) but the page is still served. No errors in the Apache logs. (1 Reply)
Discussion started by: gnurob
1 Replies

4. Shell Programming and Scripting

Quitting from a script, either sourced or not

This is a very simple problem, I am wondering why I can find no answer anywhere... I have a script that can be run either sourced or not. This script has some place where it needs to quit execution (e.g., when an error is found) If I "exit", the sourced call would exit the parent shell, but... (7 Replies)
Discussion started by: MadMage
7 Replies

5. Shell Programming and Scripting

KSH - Sourced file location

The sample scripts below, I am looking for the location of the sourced b.sh file. The b.sh file is source by multiple files, so it is not feasible to rely on a "global" variable or passed argument. Is there any way to determine the location of b.sh within b.sh? a.sh #!/bin/ksh echo "a:... (11 Replies)
Discussion started by: Al262
11 Replies

6. Shell Programming and Scripting

Exit from sourced script

Hello, I have written a script (say chld.sh). its structure is as follows: ------------------------ #!/bin/sh usage() { echo "chld.sh <param1> <param2>" exit 0 } chk_param_1() { case $param1 in c) export PATH=$PATH:/home_a/bin/execs;; d) export... (2 Replies)
Discussion started by: angad.makkar
2 Replies

7. OS X (Apple)

which file is sourced by bash on login (Mac OS X 10.5.3)?

Hi: So my current Python (2.52) rig is not working as intended. "echo $PATH" in bash gives me 'X'" that's not what i want, so i need to change my path. To do that, there appeared to be four choices (all in my ~/ directory--note: I'm root, it's my Mac, but i'm in a user account): .profile... (2 Replies)
Discussion started by: Alex_Land
2 Replies

8. UNIX for Dummies Questions & Answers

Error loading a .so in unix env.

Hi All, I want to load a .so file in unix env., and I am getting an error in loading the same. Can anyone suggest me a way in which I can debug this issue. The sources here are .cxx files. Thanks Amol H (1 Reply)
Discussion started by: amol_helwatkar
1 Replies

9. Shell Programming and Scripting

Adding command line env in cron env

Hello friends, i run two scripts manually & they work. i run them in cron & they don work. how to match the two env's 1.command line env 2.cron env i would like cron to use command line env. Thanks & Regards Abhijeet (1 Reply)
Discussion started by: abhijeetkul
1 Replies

10. UNIX for Advanced & Expert Users

login error(can not set process env.)

I have created user in AIX 4.3.3 which the member of staff group. but during login ( with su command) it gives the error "can not set process environment " but when it is member of another group -dba -which is the group for oracle database- it works properly. Pls let me know the solution. ... (5 Replies)
Discussion started by: amit
5 Replies
Login or Register to Ask a Question