How do you get nano / pico on OpenSolaris?
SUN is working on the SUNWgnu-nano package to include in the next release. In the meantime, you can compile the nano sources yourself. This worked for me. To compile do the following:
- Make sure you have installed the SUNWgcc package in order to install gcc.
-
Download the source package from the debian distribution. http://packages.debian.org/source/stable/nano
-
Unpack the package with "gunzip xxxx.tar.gz", where xxxx.tar.gz is the source package you downloaded.
-
Detach the package with 'tar -xf xxxx', where xxxx is the unpacked source package.
-
Go to the original folder. Do "./configure" to create a make file for your system.
- Enter 'make' to create a binary
- The 'nano' binary must be in the src subfolder. Copy this to '/ usr / bin'. And create a soft link for "pico" for it, i.e. "Ln -s / usr / bin / nano pico"
Check it!
1) Open the package manager (System> Administration> Package Manager) 2) Open the repository settings (Settings> Manage Repositories) 3) Add the Blastwave repository (Name: blastwave, URL: http://blastwave.network.com:10000 ) 4) Select the repository in the upper right corner 5) Search for package "IPSnano" 6) Select pacakge 7) Click "Install / Update"
8) Change your path to include / opt / csw / bin (For example $ vi ~ / .profile and then add the line above to your path) 9) Log out and again to reflect the changes.
Check if you are using the correct version of nano: $ which nano
It looks like both Nano and Pico are available as auto-generated packages in a "pending" repository here: http://pkg.opensolaris.org/pending/en/index.shtml . I think they are waiting for someone to follow the verification activities and make sure they work. They can then be moved to the contrib repository. You can read more here: http://opensolaris.org/os/community/sw-porters/ .
source to share
You can ask OpenSolaris a question on Amazon EC2 https://www2.sun.de/dct/forms/reg_us_0505_351_0.jsp
source to share