LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (https://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   How to I configure gcc on Solaris (https://www.linuxquestions.org/questions/solaris-opensolaris-20/how-to-i-configure-gcc-on-solaris-1680/)

ehsan 04-05-2001 09:18 PM

I just installed gcc which I downloaded from solarisfreeware.com. I am trying to install mySql on my sun box. but when I run ./configure computer return not found.

Thank You

sean_pereira 12-17-2002 09:02 AM

I suggest you copy the mysql-3.23.43-pkg.zip to a temporary folder like /opt/mysql. Then cd to /opt/mysql and run this command.

unzip *.zip - it will give you a Solaris pkg file like SFxxxx

Next
pkgadd -d /opt/mysql/SFxxx

Follow the prompts thereafter.

stickman 12-17-2002 09:12 AM

Is the "not found" error for gcc or configure? If the error is for gcc, then make sure that /usr/local/bin is in your PATH. This is where gcc from Sunfreeware installs. It might be easier for you to just install mysql from a package using pkgadd.

sridhar11 12-21-2002 03:11 AM

You have to add path in .profile file as bello

PATH=/usr/local/bin:$PATH
export PATH

After that you reboot definitely it will work

stickman 12-21-2002 09:52 AM

You don't have to reboot just because your changed your PATH or modified your .profile. You can simply re-source your .profile.

dimes 01-08-2003 12:18 PM

FYI:

sourceing for different shells;

sh/ksh/bash:

. <path_to_envfile>

thats 'dot space path_to_env_file' where your env file is either .profile, .kshrc, or .bashrc(or .bash_profile)

csh/tcsh:

source <path_to_env_file>

thats 'source path_to_env_file' where your env file is either .cshrc or .tcshrc

all the above env files would normaly be found in your home directory for your user.

examples:

. /export/home/bob/.profile

source /home/jane/.cshrc

Lastly, logging your user out and back in will achieve the same results.



Quote:

Originally posted by stickman
You don't have to reboot just because your changed your PATH or modified your .profile. You can simply re-source your .profile.


All times are GMT -5. The time now is 06:56 PM.