LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-14-2004, 04:09 PM   #1
Zero-0-Effect
Member
 
Registered: Sep 2002
Location: Texas
Distribution: SlackWare - Current LFS - CVS
Posts: 267

Rep: Reputation: 31
sed errors while installing tcl8.4.5


Im installing tcl onto a lfs system. Im getting a error while executing this sed command.
Code:
sed -i "s,^TCL_LIB_FILE='libtcl${V}..TCL_DBGX..so',TCL_LIB_FILE=\"libtcl${V}\$\{TCL_DBGX\}.so\"," tclConfig.sh
I have retyped this and looked it over so many times thinking I have typos and always get the same error of

sed: -e expression #1. char 73: Unknown option to 's'

I would just edit the tclConfig.sh file manually but I dont know all that much about what its trying to replace. Is there anyway to split this into more pieces so that editing by hand will not be so difficult or is there a error.

This is taken out of the blfs-cvs book 5.0 and the versions of programs used are all the same. This is my last thing that I need to install to get my system complete. All other programs are dependent on this one in some way.

Any suggestions would be very much appreciated!
 
Old 03-15-2004, 09:49 AM   #2
bigearsbilly
Senior Member
 
Registered: Mar 2004
Location: england
Distribution: Debian, Mint, Puppy, Raspbian
Posts: 3,420

Rep: Reputation: 198Reputation: 198
It works okay for me on solaris
execpt the -i switch doesn't work.

Can't see anything obvious.

what does ${V} instantiate to?
it maybe has a ',' in it upsetting the delimiters.

Maybe different delimiters may cure it?
try changing it to:

Code:
sed s/^TCL_LIB_FILE='libtcl..TCL_DBGX..so'/TCL_LIB_FILE="libtcl$\{TCL_DBGX\}.so"/  tclConfig.sh


I take it -i is ignore case.
 
Old 03-15-2004, 06:55 PM   #3
Zero-0-Effect
Member
 
Registered: Sep 2002
Location: Texas
Distribution: SlackWare - Current LFS - CVS
Posts: 267

Original Poster
Rep: Reputation: 31
Well the ${V} is the variable I set at the top.. before this command.
VERSION=8.4.5
V=`echo $VERSION | cut -d "." -f 1,2`

Prob should of posted that as well... sorry bout that...

I went ahead and looked through the file and it "looked" like it did what it is supposed to do although I'm not to familiar with the sed command syntax yet......
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
TCL8.6.4 strstr.c make error Cynric Linux From Scratch 0 08-21-2004 10:11 PM
Problem with compiling tcl8.4.6 pengStudent Linux From Scratch 1 06-27-2004 08:19 PM
tcl8.4.5 errors on install.. blfs book cvs Zero-0-Effect Linux From Scratch 5 03-15-2004 10:23 PM
Insert character into a line with sed? & variables in sed? jago25_98 Programming 5 03-11-2004 07:12 AM
compiling Tcl8.3.5 zLinuxz Linux - General 3 06-08-2003 01:02 PM


All times are GMT -5. The time now is 03:26 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration