installing Samba

Hi I have SunFire e450 machine and want to install Samba. I am trying this for the first time and I have downloaded samba-latest.tar.gz and when I cd /u01/solaris_patches/samba-3.0.23d/source

./configure

SAMBA VERSION: 3.0.23d

checking for -fPIE...

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.

so I downloaded libiconv-1.11

cd libiconv-1.11

# ./configure

checking for a BSD-compatible install... build-aux/install-sh -c

checking whether build environment is sane... yes

checking for gawk... no

checking for mawk... no

checking for nawk... nawk

checking whether make sets $(MAKE)... no

checking whether make sets $(MAKE)... (cached) no

checking for gcc... no

checking for cc... no

checking for cl.exe... no

configure: error: no acceptable C compiler found in $PATH

See `config.log' for more details.

Can someone please advise where am I going wrong what do I need to do to install Samba

[1181 byte] By [tejaspandyaa] at [2007-11-26 13:57:34]
# 1
http://www.ilkda.com/compile/
alan.paea at 2007-7-8 1:37:30 > top of Java-index,General,Sys Admin Best Practices...
# 2
Thank you for the site but this is where I am stuck. As mentioned, I am new and do not know how and where to set the variables.
tejaspandyaa at 2007-7-8 1:37:30 > top of Java-index,General,Sys Admin Best Practices...
# 3

First post the output of the following command:

echo $PATH

Second, do you have a GCC/CC compiler installed? If not you will need to download gcc from www.sunfreeware.com. Make sure to download and install any dependent packages as well.

Once you have the packages downloaded and uncompressed, install them to the system with the folowing command:

pkgadd -d <PKGNAME>

Rerun you ./configure for samba

Lee_McCreerya at 2007-7-8 1:37:30 > top of Java-index,General,Sys Admin Best Practices...
# 4

Hi Lee,

Here is the output as root:

# echo $PATH

/usr/sbin:/usr/bin

I have downloaded gcc-3.4.6-sol9-sparc-local.gz and have unzipped it and now have

gcc-3.4.6-sol9-sparc-local

I did pkgadd -d gcc-3.4.6-sol9-sparc-local.

I have also downloaded and untared libiconv-1.11.tar.gz but now when I run ./configure from samba-3.0.23d/source, I get

SAMBA VERSION: 3.0.23d

checking for -fPIE...

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.

tejaspandyaa at 2007-7-8 1:37:30 > top of Java-index,General,Sys Admin Best Practices...
# 5

Add the following to your PATH and re-run ./configure.

For bash shell

#> export PATH=$PATH:/usr/local/bin:/usr/ccs/bin

#> export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib

For sh/ksh shell

#> PATH=$PATH:/usr/local/bin:/usr/ccs/bin

#> LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib

#> export PATH LD_LIBRARY_PATH

Then re-run ./configure

Lee_McCreerya at 2007-7-8 1:37:30 > top of Java-index,General,Sys Admin Best Practices...