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
Last edited by Scrutinizer; 01-29-2014 at 02:27 AM..
This User Gave Thanks to Scrutinizer For This Post:
/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:
/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.
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 autorgen.sh script seems to exit without too much trouble:
$ ./autogen.sh
checking... (2 Replies)
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)
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)
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)
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)
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)
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)
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)
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)