Discussion Locked

Samba installation on Sun Solaris 8

0 helpful
24 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I've follow the steps to install the samba on my Sun solaris 8.
I'd make a directory at a convenient point in the file system to hold the source code and copy the source into this directory. For example:

# mkdir -p /opt/source/samba
# cd /opt/source/samba
# cp /tmp/samba-2.0.6.tar.gz .
Unzip and untar the source and then change to the directory created by tar:

# gunzip samba*
# tar xvf samba*
# cd samba-2.0.6
At this point, you may like to have a look at the README file for general information and at the file docs/textdocs/UNIX_INSTALL.txt for detailed installation instructions. If you're impatient, just follow the instructions here which should be enough to get you started..

3. Compile the source code and install Samba:
Configure the compilation process for your system:

# cd source
# ./configure
Compile the source code:

But I was stuck at this step and the errors message sound like this
checking for gcc...no
checking for cc...no
configure: error:no acceptable cc found in $Path
Pls advise.

24 replies

by rapidad

Please post the following

echo $PATH

and we can probably tell you what to add to your path so the compiler can be found

by rapidad

at the command prompt # which means you are root, or if that is not the prompt at the left of the terminal screen and it is $ that means you are not root and maybe that is why your path cant find cc. let us know. From what you typed it looked like you were logged in as root, type id then hit enter and it will tell you....

enter echo $PATH, it will look like:

#echo $PATH

by rapidad

My friend, I hate to do this but i have to wait till I get back to work where I can access the unix box. Right now it sounds like all the solaris binaries arent installed. this is not as odd as it seems, most installs dont put down everything because hard drives used to cost so much (still do on most unix boxes). for now however I would suggest doing a more on cc (cd to the directory that holds cc and do a more cc) Read the whole thing(I know!! its a pain) and see if anything jumps out at you. see you tomorrow morning about 8:30 pst is when I get in. good luck..

by rapidad

Here, this may also help (always drop error messages with quotes into google)

If you get the message "language optional software package not installed",
this means that the compiler is not installed. (Like, duh.) Sun doesn't
include a C compiler with Solaris. Get gcc. Put it in your path and/or in
the makefile (e.g. CC=gcc). Perhaps do "ln -s gcc /usr/local/bin/cc" so that
/usr/local/bin/cc points to /usr/local/bin/gcc, and make sure /usr/local/bin
is near the front of your path. This is still not a security question.
###############################################################################
http://www.faqs.org/faqs/computer-security/most-common-qs/section-12.html
#####################################################################

by rapidad

OK basically what we have is your system does not have all the binaries (programs) neccessary to load Samba. You may use the links i gave you to load the compiler, but i can almost assure you that there will be something else missing. Why did you want samba, there are other alternatives, let me know.

by lcw

Where should I put lookk for the $PATH?
I'm really rookies in Sun Solaris.
I just want to get the Sun mount file accessible by Windows syttem.
Pls advise.

by lcw

Where should I put and look for the $PATH?
I'm really rookies in Sun Solaris.
I just want to get the Sun mount file accessible by Windows syttem.
Pls advise.

by lcw

the output is
/usr/sbin:/usr/bin:/usr/dt/bin:/usr/openwin/bin:/bin:/usr/ucb

by rapidad

cc is under
/usr/ucb/cc
your output shows a space, if that is indeed the case thats the problem. do a which on cc
#which cc
and see if it returns cc in the path
/usr/ucb/cc
if it does then the version may be wrong (acceptable cc found) I hopefor simplicity sake that the space is just the problem. let me know

by rapidad

OK do a cc from the promp and see if it returns:
#cc

result????

lanuage optional software package not installed

by lcw

Sorry for all the confusion.The space of
':/us r/ucb'is actually ':/usr/ucb'thats it.Nothing behind anymore.
Pls advise ASAP.

by lcw

the output is '/usr/ucb/cc: languague optional software not installed'.

PLs advise.I think we're almost there.
ASAP

by lcw

Sorry, your explanation is too tough for me to understood.Can you pls explain step by step what should I do expecially with the path of /usr/local/bin.
Pls advise ASAP
Is it so troublesome just to installed SAMBA.

by p544sk1

In order to complie Samba, You may need a full version of C complier, either GCC or ANSI C, on your Solaris 8 box.
You can down load GCC binary for Solaris 8 @ http://www.sunfreeware.com. Or you have to buy C compiler for Solaris 8 from Sun.

Hope this help.

by lcw

Actually I've thought about this and had downloaded the gcc but unfortunately the installation of gcc encountered error.
Will get back to you regarding on the gcc installation error.

by lcw

The main purpose I'm using Samba is because to allow file and printer sharing between Unix and Windows.
Will get back to you on the GCC installation error.

by lcw

I downloaded the gcc compiler using the following steps from the net but unfortunately it's encountered error again.This is the step.

The software used to create gcc 3.1 was all from packages on sunfreeware.com. These include the gcc-2.95.3, bison-1.34, flex-2.5.4a, texinfo-4.1, autoconf-2.53, make-3.79.1, and automake-1.6 packages. It may also be important to install the libiconv-1.6.1 package to use some of the languages in gcc 3.1. See also a comment below about the libgcc package.

I downloaded the gcc-3.1.tar.gz source from the GNU site.
I put the source in a directory with plenty of disk space.
I then ran

gunzip gcc-3.1.tar.gz

tar xvf gcc-3.1.tar

(this creates a directory gcc-3.1)

cd gcc-3.1

mkdir objdir
cd objdir

../configure --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld
--disable-nls

I was stuck at this step saying
Configuring for a Sparc-sun-solaris2.8.
created "Makefile" in /gcc-3.1 using "mh-frag"
/usr/ucb/cc:language optional software package not installed
***The command 'cc -o conftest -g conftest.c failed.
***You must set the environment variable CC to a working compiler.

(except in the case of Solaris 2.5 on SPARC where I used

../configure --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld --disable-nls --enable-languages=c,c++,objc --disable-libgcj

and left out the other language options.)

(I choose to use the as and ld that come with Solaris and are usually
in the /usr/ccs/bin directory. These files are only there if the
SUNW developer packages from the Solaris have been installed. I
have noticed problems with the NLS support and so I disable that. The
default installation directory is /usr/local.)

This discussion is closed to new replies.