How to link sed from /usr/bin/sed to /usr/local/bin/sed?

Thread Tools Search this Thread
Operating Systems Solaris How to link sed from /usr/bin/sed to /usr/local/bin/sed?
# 8  
Old 01-29-2014
First things first:
Like Don Cragun mentioned, don't you have gsed on your system?
Try which gsed to see if it is there or check if there is /opt/csw/bin/gsed. If so, you could make a symlink from /usr/local/bin/sed to /opt/csw/bin/gsed. A more universal alternative would be to test inside the script if it is in Solaris and then check if gsed is available and use that.

If it is not there are packages on the Solaris companion CD that will install them there.

If you want to compile sed, then you would need to check is gcc is installed on your Solaris system. If so it will probably be in /usr/sfw/bin

If so, follow the instructions in the README file for Solaris. Probably the default is to install in /usr/local (you can check with make -n after you configure). Maybe all you need is go to the directory with the GNU sed source code and
sudo make install

Last edited by Scrutinizer; 01-29-2014 at 02:27 AM..
This User Gave Thanks to Scrutinizer For This Post:
# 9  
Old 01-29-2014

I see make at below location at my system:-


which make can I use?

this is what I have starting with ma in system:-

mac         mach        magnifier   mail        mailcompat  mailp       mailq       mailstats   mailx       makedev     makeuuid    man

-bash-3.2$ pwd
-bash-3.2$ ls
ABOUT-NLS       COPYING         INSTALL         NEWS            THANKS          bootstrap     doc             po
AUTHORS         COPYING.DOC     README          aclocal.m4      bootstrap.conf  configure       lib             sed
BUGS            ChangeLog     README-alpha    basicdefs.h     build-aux    m4              testsuite

This is what I have in my sed folder.

Please advise.
# 10  
Old 01-29-2014
Did you check the other options first?
This User Gave Thanks to Scrutinizer For This Post:
# 11  
Old 01-29-2014
Which options?
# 12  
Old 01-29-2014
If gsed is installed, if you can install the SUN/Oracle supplied version from the companion CD, if gcc is installed ...
# 13  
Old 01-29-2014
/usr/ccs/bin/make and /usr/xpg4/bin/make are identical. (/usr/share/lib/make is a directory.)
There might be /usr/sfw/bin/gmake (GNU make).
And /usr/sfw/bin/gcc.
sfw means "Sun Free Ware" but is no longer free.
A similar role plays /opt/csw. The tool /opt/csw/bin/pkg-get can install/update additional packages from the Internet.
This User Gave Thanks to MadeInGermany For This Post:
# 14  
Old 01-30-2014
Originally Posted by MadeInGermany
/usr/ccs/bin/make and /usr/xpg4/bin/make are identical. (/usr/share/lib/make is a directory.)
There might be /usr/sfw/bin/gmake (GNU make).
And /usr/sfw/bin/gcc.
sfw means "Sun Free Ware" but is no longer free.
A similar role plays /opt/csw. The tool /opt/csw/bin/pkg-get can install/update additional packages from the Internet.
And FWIW, if there is a /usr/sfw/bin/gmake, use that instead of /usr/ccs/bin/make. Way too many open source packages rely on GNU extensions to work with older, stricter make versions.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. BSD

FreeBSD: /usr/bin/ld not looking in /usr/local/lib

I'm not sure if this is the default behavior for the ld command, but it does not seem to be looking in /usr/local/lib for shared libraries. I was trying to compile the latest version of Kanatest from svn. The script seems to exit without too much trouble: $ ./ checking... (2 Replies)
Discussion started by: AntumDeluge
2 Replies

2. Shell Programming and Scripting

/usr/local/bin/expr function not working

Legends, I am not able to set "expr" function in ksh script. Below is the sample code i used, and output is as "Syntax error" Please help me to come out of it. OUTPUT (9 Replies)
Discussion started by: sdosanjh
9 Replies

3. AIX

/usr/local/bin/cvs: Not found

I can able to access /usr/local/bin/cvs in the terminal (AIX 6.1 Box). but i am getting the "/usr/local/bin/cvs: Not found " when i call it from the script. please some one assist me what maybe problem (6 Replies)
Discussion started by: hifirockz
6 Replies

4. Solaris

What is the difference between xpg4/bin and usr/bin?

Hi Experts, I found that the same commands(sort, du, df, find, grep etc.) exists in both dir. What is the difference to use them? i.e: to use xpg4/bin/grep and usr/bin/grep My OS version is SunOS 5.10 Regards, Saps (7 Replies)
Discussion started by: saps19
7 Replies

5. OS X (Apple)

When to use /Users/m/bin instead of /usr/local/bin (& whats the diff?)?

Q1. I understand that /usr/local/bin means I can install/uninstall stuff in here and have any chance of messing up my original system files or effecting any other users. I created this directory myself. But what about the directory I didn't create, namely /Users/m/bin? How is that directory... (1 Reply)
Discussion started by: michellepace
1 Replies

6. Solaris

Questions about /usr/local/bin & scripts.

Hi gentlemen. For what intended is the directory /usr/local/bin? In this directory are some script. I don't understand how these scripts being in this directory are started. Each time after registration of the user occurs start of these scripts. These scripts start applications. (7 Replies)
Discussion started by: wolfgang
7 Replies

7. UNIX for Dummies Questions & Answers

Alias /usr/bin to /bin in profile

Hi! All the basic linux commands, ie. echo, find, etc, are located in /bin. I have a couple of programs that have these commands pointed towards /usr/bin, ie, /usr/bin/echo (even though the actual 'echo' command is in /bin). How can I alias or redirect or link the /usr/bin to /bin just for this... (6 Replies)
Discussion started by: dancerat
6 Replies

8. Solaris

How do I link ld in /usr/ucb/ to /usr/ccs/bin?

Hi all, below is the problem details: ora10g@CNORACLE1>which ld /usr/ucb/ld ora10g@CNORACLE1>cd /usr/ccs/bin ora10g@CNORACLE1>ln -s /usr/ucb/ld ld ln: cannot create ld: File exists ora10g@CNORACLE1> how to link it to /usr/ccs/bin? (6 Replies)
Discussion started by: SmartAntz
6 Replies

9. UNIX for Dummies Questions & Answers

/bin/sh: /usr/bin/vi: No such file or directory when doing crontab

I just set up an ftp server with Red Hat 5.2. I am doing the work, I'm baby stepping, but it seems like every step I get stuck. Currently, I'm trying to set up a crontab job, but I'm getting the following message: /bin/sh: /usr/bin/vi: No such file or directory. I see that vi exists in /bin/vi,... (3 Replies)
Discussion started by: kwalter
3 Replies
Login or Register to Ask a Question