Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 03-14-2004, 04:09 PM   #1
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.
sed -i "s,^TCL_LIB_FILE='libtcl${V}',TCL_LIB_FILE=\"libtcl${V}\$\{TCL_DBGX\}.so\","
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 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
Senior Member
Registered: Mar 2004
Location: england
Distribution: Debian, Mint, Puppy, Raspbian
Posts: 3,421

Rep: Reputation: 200Reputation: 200Reputation: 200
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:

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

I take it -i is ignore case.
Old 03-15-2004, 06:55 PM   #3
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.
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......


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 > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:08 AM.

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