Sponsored Content
Top Forums UNIX for Advanced & Expert Users Getting library related error while executing a script Post 302771222 by Jcpratap on Wednesday 20th of February 2013 06:12:34 AM
Old 02-20-2013
below is o/p

Code:
$ type find
find is /usr/bin/find
$ type ls
ls is a tracked alias for /usr/bin/ls

---------- Post updated at 05:01 AM ---------- Previous update was at 04:12 AM ----------

the file is failing when i am running the profile file as below

Code:
 
$ vi $HOME/.profile.nsm
"/export/home/asgadmin/.profile.nsm" 38 lines, 595 characters
#
# @(#)local.profile 1.6 98/02/06 SMI
#
set vx
stty istrip
PATH=$PATH:/usr/sbin:/usr/bin:/usr/ucb:/etc:/usr/openwin/bin:.:/usr/dt/bin:/usr/local/bin
export PATH
MOZILLA_HOME=/usr/dt/bin
export MOZILLA_HOME
LANG=C
export LANG
LC_ALL=C
export LC_ALL
MMSHOME=/mms/MMS
export MMSHOME
. /export/home/safeprofile
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ISMROOT/shared_lib
export LD_LIBRARY_PATH
if [ -f /etc/conf/ism/ismroot ]
then
ISMROOT=`cat /etc/conf/ism/ismroot`
export ISMROOT
 . $ISMROOT/var/config/ism/ismprofile
fi
#LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ISMROOT/shared_lib
 
. /mms/MMS/NSM/.NSMprofile #ERInsmcom

it is failing while reading /etc/conf/ism/ismroot, because of this
ISMROOT variable is assigned null variable

file .profile.nsm is called through another script
whose code is as below

Code:
 
$ cat ./mms_alarm.ksh
#! /bin/ksh
set vx
CLASSPATH=/export/home/asgadmin/Mtce_Progs
export CLASSPATH
. $HOME/.profile.nsm
compress  /var/opt/MMS/NSM/dumpAlarm.1*
find /var/opt/MMS/NSM/dumpAlarm.1*.Z  -mtime +30 -exec rm {} \;
/mms/MMS/NSM/bin/DumpISM-Alarm.sh
ls   /var/opt/MMS/NSM | grep dumpAlarm.1 > alarm.lst
mydir=`tail -1 alarm.lst`
cp  /var/opt/MMS/NSM/$mydir $HOME/Mtce_Progs/MMS_Alarm/Alarm.doc
java MMS_Alarm.AlarmMain


it is giving below error in o/p

Code:
ld.so.1: cat: fatal: vhost.so: open failed: No such file or directory
./mms_alarm.ksh[7]: 28150 Killed
./mms_alarm.ksh[7]: /var/config/ism/ismprofile:  not found

---------- Post updated at 05:03 AM ---------- Previous update was at 05:01 AM ----------

Code:
 
ld.so.1: cat: fatal: vhost.so: open failed: No such file or directory

above error is coming when we try to
do

Code:
 
cat /etc/conf/ism/ismroot

through script , command line this is working fine

---------- Post updated at 06:12 AM ---------- Previous update was at 05:03 AM ----------

guys,

my system is solaris 5.10 and i have serached on net and i have found this is some library dependency error

the error is

Code:
ld.so.1: cat: fatal: vhost.so: open failed: No such file or directory

it says that o/p of
Code:
ldd /usr/bin/cat

should be like
Code:
vhost.so => (file not found)


i.e vhost.so is not present in library
but my o/p is coming


Code:
ldd /usr/bin/cat
        libc.so.1 =>     /lib/libc.so.1
        libm.so.2 =>     /lib/libm.so.2
        /lib/libm/libm_hwcap1.so.2
        /platform/SUNW,SPARC-Enterprise/lib/libc_psr.so.1

all above files are present and having execute permissions
anyone having any idea about this

link to article on net is
How to solve library dependency errors in Solaris using pkg-get tool /zeroconf
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

error while executing the script

Hello I am executing the following script nawk 'NR == 1 || substr($0,63,5) ~ /H... / && \ _++ == 2 { fn && close(fn); fn = "part_" ++c; _ = 1 } { print > fn }' sample.dat When i execute as it is it is executing fine. but when i execute the whole script as a single line like below ... (2 Replies)
Discussion started by: dsdev_123
2 Replies

2. Shell Programming and Scripting

Error while executing a script

My script is as below : #!/bin/sh for line in `cat Results.txt` do FEILD1=`echo $line |awk -F"|" '{print $1}'` FEILD2=`echo $line |awk -F"|" '{print $2}'` FEILD3=`echo $line |awk -F"|" '{print $3}'` FEILD4=`echo $line |awk -F"|" '{print $4}'` echo "$FEILD1 $FIELD2 $FIELD3 $FIELD4" done ... (15 Replies)
Discussion started by: shwetainnani
15 Replies

3. Shell Programming and Scripting

Error while executing the below script

I am executing the below in telnet #!/usr/bin/ksh File1=simple.txt # The file to check LogFile=simple.log # The log file DelayMax=30 # Timeout delay Tolerance=2 # BEGIN ############################## while true do StampNow=$(date +%s)/60 # stamp in minutes ... (3 Replies)
Discussion started by: chinniforu2003
3 Replies

4. UNIX for Dummies Questions & Answers

Error Executing the script.

Hi , I m getting an error after executing the script. My script. Script is used to find out the date on 8 different machines(mentioned in SERVERNAMES file). I have added public key to avoid ssh password and ssh without password working fine. #!/bin/sh fn_VMFind() { Date=`ssh -t... (5 Replies)
Discussion started by: pinga123
5 Replies

5. Shell Programming and Scripting

error executing script in a while loop

Im unable to run scripts when i read each script thru a while loop. Is this way of execution thru while loop is wrong or is there any error in the script. I get the following error msg and i use ksh. ./vftest.ksh: ./add.ksh -customer 4875 -dim RD,TRND,TT,HS,MRKT,PRDC,ACV,CV,FCT: not found ... (7 Replies)
Discussion started by: michaelrozar17
7 Replies

6. Shell Programming and Scripting

Error while executing a script

Hi Please assist. Im getting an error while execuing the script name d "cdsnd.basel.cd_new " as siiadm user. Thanks. siiadm> ls -l total 64 -rwxr-xr-x 1 siiadm sboadm 1004 Sep 17 2008 cdsnd.basel.cd -rwxr-xr-x 1 siiadm sapsys 998 Nov 16 09:14 cdsnd.basel.cd_new... (1 Reply)
Discussion started by: samsungsamsung
1 Replies

7. Shell Programming and Scripting

Error in executing Perl script

Hello All I am facing an issue The unix script is running fine in unix environment which uses ssh connection but when I try to run the same in informatica environment (same server where I was running the unix script manually successfully) its showing the below error command-line line 0:... (11 Replies)
Discussion started by: Pratik4891
11 Replies

8. Shell Programming and Scripting

Error executing script

Please delete de thread. Thanks. (10 Replies)
Discussion started by: Rodrih92
10 Replies

9. UNIX for Dummies Questions & Answers

Error executing the script

I have the following script test.sh owned by dwdev account and group dwdev, the permissions on the script are as follows. -rw-r-x--- 1 dwdev dwdev 279 Sep 17 13:19 test.sh Groups: cat /etc/group | grep dwdev dwdev:x:704:dwdev dwgroup:x:725:dwdev writers:x:726:dwdev User: cat /etc/passwd |... (3 Replies)
Discussion started by: Ariean
3 Replies

10. Red Hat

Error when executing script

Hi, I wrote this script to test if the output for DIR1 and DIR2 comes out as I want : #!/bin/bash DAY=$(date +%d) MONTH=$(date +%b) YEAR=$(date +%Y) DIR1=$($MONTH$YEAR"_Blast_BC01") DIR2=$($MONTH$YEAR"_Blast_BC15") echo $DIR1 echo $DIR2 This is the output I want for echo $DIR1 ... (12 Replies)
Discussion started by: anaigini45
12 Replies
All times are GMT -4. The time now is 08:19 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy