We help IT Professionals succeed at work.

Solaris Bind install on Ultra 5/NIS how to

peterh1975
peterh1975 asked
on
Hi All,
I need a little help. I am new to solaris and i have been reading quite a bit, i also have a few questions on NIS and DNS. What i read was in order to have DNS you must have an NIS....but i didn`t not see the option for me to type nisserver -v mydomain.com...perhaps it is becuase i don`t have bind installed, and i have downloaded that and I am having problems with it, i have gunzippped it and tarred it, cd /bind-9.2.0 and i typed ./configure and reieved this message.

# ./configure
loading cache ./config.cache
checking host system type... i386-pc-solaris2.8
checking whether make sets ${MAKE}... ./configure: make: not found
no
checking for ranlib... :
checking for a BSD compatible install... ./install-sh -c
checking for ar... no
configure: error:
ar program not found. Please fix your PATH to include the directory in
which ar resides, or set AR in the environment with the full path to ar.

Sorry I do not know to much about unix and was hoping someone give me step by step basis on configuring this. I am a fast learner but need some..show me how to thanks!
Comment
Watch Question

Top Expert 2005

Commented:
It sounds like you didn't install the bundled developer components when you installed Solaris. The C compliler is an unbundled product and has to be purchased separately (or you can install gcc), but the bundled developer components provide make and other essential tools. Since the OS is already installed you'll want to add those with 'swmtool'. I seem to remember that you can just pick "Developer System Support" and get all the components.

Commented:
Perhaps, you might want to check the precompiled binaries for you system.  Check our Sunfreeware website, and choose one that suit your installation;

http://www.sunfreeware.com/

jlevie's recommendation will get the libraries, header files, and other necessary tools for development, but you might need to get the compiler itself.  Grab yourself a copy of GCC from Sunfreeware website.

Personally, I would opt for precompiled version.  Saves me a lot of headache (in term of building it).
Top Expert 2005

Commented:
I took a quick look and I don't see bind 9.2 on sunfreeware. Bind 8.2 is there and 9.1, but for a new DNS installation it doesn't make a lot of sense to me to use either of those. You might as well go straight to Bind 9.2, and that looks like it will require buidling from sources. If one were going to use a precomplied version the one from the Solaris distro would be just as valid as any of the choices from sunfreeware (and probably a better choice than 9.1).

Author

Commented:
Hi All,
I have installed the gcc and it is still not working? i went to forum.sun.com and someone replied with this message PATH=$PATH:/usr/ccs/bin ; export PATH    
I have no idea what i am suppose to do here?
Top Expert 2005

Commented:
The Sun bundled developer tools (make, etc.) are located in /usr/ccs/bin. I don't know where your gcc installed as I always build mine from source and install in it /usr/local. That means that I need a PATH that includes those directories  so that the tools can be found. For those I could execute:

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

for Bourne or Korn shell or:

> set PATH = ($path /usr/local/bin /usr/ccs/bin)

in C shell. The directories listed in your PATH are searched for executable commands.

Commented:
Or to make the PATH permanent (available everytime you login), add the entries in your .profile or/and .chsrc

I prefer to add it to /etc/profile to make is available system wide.

Author

Commented:
Thnxs for the reply Jlevie, when i installed the path using PATH=$PATH:/usr/ccs/bin ; export PATH and it looked like this

#loading cache ./config.cache
checking host system type...sparc-sun-solaris2.8
checking weather make sets ${MAKE}...yes
checking for ranlib... ranlib
checking for a BSD compatible install... ./install-sh-c
checking for ar... /usr/ccs/bin/ar
checking for etags... no
checking for emacs-etags.. no
checking for perl5... no
checking for perl... /usr/bin/perl
checking for gcc... no
checking for cc... no
configure error: no acceptable cc found in $PATH

any idea what i can do from here?

Thanks Peter


Commented:
Could you do an "echo $PATH" to check you current PATH value.

Author

Commented:
Hi Samri
I did what you asked and the current path is
# /usr/sbin:/usr/bin:/usr/dt/bin:/usr/openwin/bin:/usr/ucb:/usr/ccs/bin
 
Any idea?
       Thanks Peter

Commented:
If you noticed, the /usr/local/bin is not in the PATH variable.  Depending on what shell you are using, follow jlevie's recommendation.

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

for Bourne or Korn shell or:

> set PATH = ($path /usr/local/bin /usr/ccs/bin)

And check the $PATH value again.  Unless your have /usr/local/bin in you path then, it might work.

Do this;
# PATH=$PATH:/usr/local/bin:/usr/ccs/bin
# export PATH

waiting.

Author

Commented:
Hey Samri.
LOL its a no go??? came out the samething.
 Thanks Peter
Top Expert 2005

Commented:
When you installed gcc where did it install to? Is it in /usr/local or somewhere else, like /opt? Also, since bind has had configure run on it once it'll have the compiler choice (cc) cached. Once your path is adjusted to inclde wherever gcc lives you'll need to (in the bind distribution directory) do a 'make distclean' followed by a './configure'

Commented:
Okay Peter.  there is a file "profile" in /etc/


Add the following line, somewhere towards the top

PATH=/usr/sbin:/usr/bin:/usr/dt/bin:/usr/openwin/bin:/usr/ucb:/usr/ccs/bin:/usr/local/bin
export PATH

After that, logout, and login back in.


Prior to retry compilation, you might want to delete the config.cache or do a "make clean" first.  Then rerun ./configure

Another trick is to create a symbolic link to your gcc in /usr/bin.  THis is NOT recommended, but should work.

ln -s /usr/local/bin/gcc /bin/gcc

Commented:
First, you dont need NIS to run DNS.

try these steps

1. create the root profile /.profile and enter the path
    accordingly.
2. type ".  /.profile" for the system to re-read  your file

3. check if GCC (which you installed) is in your path
   type "which gcc"
   gcc usually resides in /usr/local/bin


4. When you build BIND, tell the system u are using gcc


   ./configure CC=gcc  .....any_other_options

Author

Commented:
hey MastaT,
Thanks for the reply, how do i create a profile? I`ll try that comannd you have written out which is the ./configure CC=gcc and tell you what happens.
          Thanks!
Commented:
using text editor enter the PATH

PATH=/usr/sbin:/usr/bin:/usr/ccs/bin:/usr/local/bin
PATH=$PATH:/usr/local/sbin
PATH=$PATH:/some/other/path

export PATH

and save file as /.profile

dont forget the "."
CERTIFIED EXPERT

Commented:
No comment has been added lately, so it's time to clean up this Topic Area.
I will leave a recommendation for this question in the Cleanup topic area as follows:

- Answered by masterT

Please leave any comments here within the next 7 days

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER !

tfewster
Cleanup Volunteer
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange

Explore More ContentExplore courses, solutions, and other research materials related to this topic.