Solaris / OpenSolarisThis forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
rsync'ing the x86 repository right now. Will definitely buy a DVD or subscription.
Thanks for the packages page, it's really useful and exactly what I needed. Don't know how I missed it.
Then, get gcc patches from sunsolve, as it seems the initial Solaris 10 gcc had several bugs.
Alternatively, you can install gcc from blastwave:
Code:
pkg-get -i gcc
Finally, you can go the Solaris Express way, and use Sun's own compiler for free as a member of the OpenSolaris community.
I'm sorry but I have some questions:
1- I've tried to use pkgadd command to add gcc package from Solaris CDROMs, it's ok. I have no problem. I will check th patches from SUN later.
2- When I try "pkg-get" command, i see the error: "Command not found". And I don't understand what does "blastwave" mean?
3- It's the same as "Blastwave", I'm confused by "Solaris Express" and "Sun's compiler for free"
However, if I was successful with pkgadd -d ......, is it okay? "pkg-get" and "Solaris Express" are only another ways to install packages in Solaris, rite ?
hmm, after I installed gcc, I still have this error:
Code:
-bash-3.00# ./configure
checking build system type... sparc-sun-solaris2.10
checking host system type... sparc-sun-solaris2.10
checking target system type... sparc-sun-solaris2.10
checking for gcc... no
checking for cc... no
checking for cc... no
checking for cl... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
I try some ways to add /usr/sfw/bin to $PATH as:
1. Edit files:
Code:
-bash-3.00# cat /etc/skel/.profile
# This is the default standard profile provided to a user.
# They are expected to edit it to meet their own needs.
PATH=/usr/sbin:/usr/bin:/usr/sfw/bin
MAIL=/usr/mail/${LOGNAME:?}
-bash-3.00# cat /etc/skel/local.profile
#
# Copyright (c) 2001 by Sun Microsystems, Inc.
# All rights reserved.
#
# ident "@(#)local.profile 1.10 01/06/23 SMI"
stty istrip
PATH=/usr/bin:/usr/ucb:/etc:/usr/sfw/bin:.
export PATH
-bash-3.00#
Howerver, after logout / login, $PATH isn't changed.
1. pkgadd/pkgrm etc are native Solaris programs to manage packages. Use them as root, and you should have no problems.
2. You need to install pkg-get from www.blastwave.org. Only then you'll be able to use it to install packages from the Blastwave repository.
3. Blastwave is www.blastwave.org. Solaris Express is is the latest version in beta release. Solaris 11 will be based on the same codebase.
4. SUN's free compiler is available as Sun Studio 10 for OpenSolaris developers. Get it from www.opensolaris.org Downloads section.
5. pkgadd -d is okay. pkg-get is only an enhanced version, designed for use with Blastwave and similar repositories with dependency resolution.
6. Remove /usr/ucb from PATH or at least move it to the last.
7. DO NOT edit /etc/skel/.profle or any file in that directory. Make necessary changes to ~/.profile.
8. Editing /etc/skel/.profile isn't working because the file .profile in that directory is copied to the user's HOME dir only when the user is created.
9. The global profile is /etc/profile
10. Try gmake with GCC.
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789
Rep:
Quote:
Root doesn't have ~/.profile file
You are free to create one, or to set the global /etc/profile file instead.
You are also free to use a regular account instead of root, it is in fact recommended never to use the root account but when absolutely necessary.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.