LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-05-2016, 01:23 PM   #1
jothilakshmi
LQ Newbie
 
Registered: May 2016
Location: India
Posts: 2

Rep: Reputation: Disabled
working on Qt creator, installed expect & tcl, error while executing *.sh file


shell scirpt which i executed
#! /uer/bin/expect
set timerout 2

set user [lindex $argu 0]
set password [lindex $argu 1]
spawn su $user
expect "password:"
send "$password\r";
interact

error showing
/usr/bin/expect: error while loading shared libraries: libexpect5.45.so: cannot open shared object file: No such file or directory

have i done any error while installing expect & tcl or an error with the shell script
pls do help
 
Old 08-05-2016, 03:51 PM   #2
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
The shell script you posted has numerous typos, did you copy-paste it or just type it in your post and fail to error-check it? Please post code in [code][/code] tags and make sure you copy-paste it from the script itself to avoid transcription errors, they make it impossible for us to debug the real cause of the problem.

You also haven't told us what distribution you're running or how you installed expect and tcl. We can't tell you if you made an error in the installation if you haven't told us how you did the installation.
 
1 members found this post helpful.
Old 08-29-2016, 09:09 AM   #3
jothilakshmi
LQ Newbie
 
Registered: May 2016
Location: India
Posts: 2

Original Poster
Rep: Reputation: Disabled
error while installing expect & tcl

Thank you,

The path where i installed tcl was not correct, i choose /usr has a path while installing tcl and the once again installed expect.

with that my problem got solved thank you. Sorry for late reply.

Last edited by jothilakshmi; 08-29-2016 at 09:12 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] error while executing a tcl file in ns2 Zahraa Ayad Linux - General 3 12-24-2014 10:20 AM
Error while executing tcl... Ganesh3691 Linux - Wireless Networking 1 04-20-2014 12:39 PM
can anyone help me in fixing the error while executing ospf10.tcl in 20-ospf4ns file badisachandu Linux - Newbie 2 04-05-2014 06:35 PM
Executing tcl script by logging to a linux machine is there any way other than expect kamesp Linux - Software 2 06-15-2012 11:44 AM
[SOLVED] Using Expect/TCL to move contents of a text file to an executable file jefsa Linux - Newbie 4 04-20-2012 10:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration