Re: ./configure question for AIX

2007-12-05 Thread Derek Ragona

At 01:05 AM 12/5/2007, Rogelio wrote:

I have a question on compiling Nagios' NRPE on AIX (which I'm assuming
would be similar to FreeBSDl, as I'm trying to use Autotools on ksh).

I'm used to always running tar -zxfv file.tar.gz, but this time I
had to run (I think) like tar z and then tar xfv to get it
unzipped.

In that directory, I then ran ./configure and then make all, and
I'm hoping someone here might help point me in the right direction.

./configure --prefix=/opt/nagios --enable-command-args --without-ssl
make install

When I do this, I get an error about Boutell's GD library is required
to compile the statusmap, trends and histogram CGIs.  Get it from
http://www.boutell.com/gd/, compile
it, and use the --with-gd-lib and --with-gd-inc arguments to specify
the locations of the GD library and include files.

Ok, that's cool.  But am I on the right track about how to install
this on AIX? Once I installed this GD library and ./configure with
the right parameters, will this work in AIX?

(Sorry if this isn't the best place to ask this question, as I tend to
be spoiled by Linux packages.  If not, I can take it elseware)


It has been a while since I have done this on AIX, but you just need to 
check the directory structure is going to be correct.  Typically I will run 
configure and check to see what variables are set for the install 
directories, and possibly set those differently if configure did not find 
the correct directories or if I need them set differently.  Often this may 
mean moving the install directories to or from the /usr/local area.


You may do well to look for pre-compiled binaries for AIX.  Also let me 
remind you that you could gunzip the .gz file first, then just untar the 
tarball in two steps, rather than doing it in one step.


-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ./configure question

2005-06-17 Thread Jonathan Chen
On Thu, Jun 16, 2005 at 05:33:37PM -0500, Denny White wrote:

[...]
 Okay, I see I'm in such a confused state that I appear
 to be confusing others. I had read somewhere that you
 can go into a port dir you want to install, and do
 make extract  then cd into the work dir just created,
 you could do a ./configure with some option afterward
 that would show you all the available arguments/options
 you can include when you configure it before making it,
 instead of reading the makefile. Then, in that dir, you
 do ./configure --arguments --options to get it ready
 to build it the way you want. And, instead of that, you
 can also do ./configure \ which puts you in a shell on
 the next line where you enter all the arguments and then
 exit on an empty line when you're done. Which, btw, works
 for me. I hope this time I've made it more clear. And
 no, I'm not trying to build binutils.

This doesn't work all the time, as the port *may* do some additonal
magic just to get port to build. YMMV. Some ports don't even have a
`configure' script. The best place to look for supported options is in
the Makefile. The porter has already done the hard work. If you want
to know more about the port, you should ask the maintainer of the
port or the list. As it is, we have no context as to what you're
looking at.
-- 
Jonathan Chen [EMAIL PROTECTED]
--
  Opportunity does not knock,
   it presents itself when you beat down the door - W.E. Channing
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ./configure question

2005-06-16 Thread Chuck Swiger

Denny White wrote:

Question is, why I can't get it to work
anymore, when I go to a port dir, do a
make extract
cd work
./configure --arguments
I used it before for setting extra arguments
on several ports I added.


Most ports feed additional options to ./configure, check the port's Makefile to 
see what it does, or do a make configure or simple make at the top-level of 
the port instead.


--
-Chuck

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ./configure question

2005-06-16 Thread Denny White

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1



On Thu, 16 Jun 2005, Chuck Swiger wrote:


Denny White wrote:

Question is, why I can't get it to work
anymore, when I go to a port dir, do a
make extract
cd work
./configure --arguments
I used it before for setting extra arguments
on several ports I added.


Most ports feed additional options to ./configure, check the port's Makefile 
to see what it does, or do a make configure or simple make at the 
top-level of the port instead.


--
-Chuck

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]



Okay, I messed up again. I described it wrong
before. I should've said, if I do

/usr/src/contrib/binutils/./configure -args

It works okay. I found that with locate.
Could I have messed up scripts in /usr/ports
or somewhere else when I rebuilt everything?
I never had to add any path to ./configure
before. After I wrote this message, I thought
about paths  did some looking with locate.
That's what seems to be my problem. Wrong
path in env, something missing, etc.


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (FreeBSD)

iD8DBQFCsfHuy0Ty5RZE55oRAuRvAJsH+Gtu2hZexAOzkvCvAc5fnHaQEACgo5Z2
Kx+2QnApIUl8G8skx8kcAYI=
=8sgQ
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ./configure question

2005-06-16 Thread Chuck Swiger

Denny White wrote:
[ ... ]

Okay, I messed up again. I described it wrong
before. I should've said, if I do

/usr/src/contrib/binutils/./configure -args

It works okay. I found that with locate.


Are you trying to build src/contrib/binutils?  What for?


Could I have messed up scripts in /usr/ports
or somewhere else when I rebuilt everything?


Dunno.  What is the problem you have with ports?


I never had to add any path to ./configure
before. After I wrote this message, I thought
about paths  did some looking with locate.
That's what seems to be my problem. Wrong
path in env, something missing, etc.


Run the script command.  Do something which shows what you think is a problem. 
 Exit from the shell, and paste the contents of the typescript file created 
into email so you can show exactly what the error message is.


--
-Chuck

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ./configure question

2005-06-16 Thread Denny White

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1



On Thu, 16 Jun 2005, Chuck Swiger wrote:


Denny White wrote:
[ ... ]

Okay, I messed up again. I described it wrong
before. I should've said, if I do

/usr/src/contrib/binutils/./configure -args

It works okay. I found that with locate.


Are you trying to build src/contrib/binutils?  What for?


Could I have messed up scripts in /usr/ports
or somewhere else when I rebuilt everything?


Dunno.  What is the problem you have with ports?


I never had to add any path to ./configure
before. After I wrote this message, I thought
about paths  did some looking with locate.
That's what seems to be my problem. Wrong
path in env, something missing, etc.


Run the script command.  Do something which shows what you think is a 
problem.  Exit from the shell, and paste the contents of the typescript 
file created into email so you can show exactly what the error message is.


--
-Chuck

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]




Okay, I see I'm in such a confused state that I appear
to be confusing others. I had read somewhere that you
can go into a port dir you want to install, and do
make extract  then cd into the work dir just created,
you could do a ./configure with some option afterward
that would show you all the available arguments/options
you can include when you configure it before making it,
instead of reading the makefile. Then, in that dir, you
do ./configure --arguments --options to get it ready
to build it the way you want. And, instead of that, you
can also do ./configure \ which puts you in a shell on
the next line where you enter all the arguments and then
exit on an empty line when you're done. Which, btw, works
for me. I hope this time I've made it more clear. And
no, I'm not trying to build binutils.


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (FreeBSD)

iD8DBQFCsf5Ly0Ty5RZE55oRAoalAJ9OJ/H+kZ1K1OTUXPhWCyULSdTxEQCdGYF5
rkjbIaZ9jCrOCc7sRIoIJjA=
=nviR
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ./configure question

2005-06-16 Thread Vinicius Pavanelli Vianna
Would it be ./configure --help ?
You can run it to see what configuration is possible with the src you
are building, but that's what port does, it's a frontend to it (correct
me with wrong).

If you want to build manually the src you need to run ./configure
--args like ./configure --with-mysql --with-zlib for php in example,
and after the configure script run OK you do make install to make and
install the program.

HTH,
Vinicius


Denny White wrote:



 On Thu, 16 Jun 2005, Chuck Swiger wrote:

  Denny White wrote:
  [ ... ]
 
  Okay, I messed up again. I described it wrong
  before. I should've said, if I do
 
  /usr/src/contrib/binutils/./configure -args
 
  It works okay. I found that with locate.
 
 
  Are you trying to build src/contrib/binutils?  What for?
 
  Could I have messed up scripts in /usr/ports
  or somewhere else when I rebuilt everything?
 
 
  Dunno.  What is the problem you have with ports?
 
  I never had to add any path to ./configure
  before. After I wrote this message, I thought
  about paths  did some looking with locate.
  That's what seems to be my problem. Wrong
  path in env, something missing, etc.
 
 
  Run the script command.  Do something which shows what you think is
 a problem.  Exit from the shell, and paste the contents of the
 typescript file created into email so you can show exactly what the
 error message is.
 
  --
  -Chuck
 
  ___
  freebsd-questions@freebsd.org mailing list
  http://lists.freebsd.org/mailman/listinfo/freebsd-questions
  To unsubscribe, send any mail to
 [EMAIL PROTECTED]
 


 Okay, I see I'm in such a confused state that I appear
 to be confusing others. I had read somewhere that you
 can go into a port dir you want to install, and do
 make extract  then cd into the work dir just created,
 you could do a ./configure with some option afterward
 that would show you all the available arguments/options
 you can include when you configure it before making it,
 instead of reading the makefile. Then, in that dir, you
 do ./configure --arguments --options to get it ready
 to build it the way you want. And, instead of that, you
 can also do ./configure \ which puts you in a shell on
 the next line where you enter all the arguments and then
 exit on an empty line when you're done. Which, btw, works
 for me. I hope this time I've made it more clear. And
 no, I'm not trying to build binutils.


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ./configure question

2005-06-16 Thread Denny White

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1



On Thu, 16 Jun 2005, Vinicius Pavanelli Vianna wrote:


Would it be ./configure --help ?
You can run it to see what configuration is possible with the src you
are building, but that's what port does, it's a frontend to it (correct
me with wrong).

If you want to build manually the src you need to run ./configure
--args like ./configure --with-mysql --with-zlib for php in example,
and after the configure script run OK you do make install to make and
install the program.

HTH,
Vinicius


Denny White wrote:




On Thu, 16 Jun 2005, Chuck Swiger wrote:


Denny White wrote:
[ ... ]


Okay, I messed up again. I described it wrong
before. I should've said, if I do

/usr/src/contrib/binutils/./configure -args

It works okay. I found that with locate.



Are you trying to build src/contrib/binutils?  What for?


Could I have messed up scripts in /usr/ports
or somewhere else when I rebuilt everything?



Dunno.  What is the problem you have with ports?


I never had to add any path to ./configure
before. After I wrote this message, I thought
about paths  did some looking with locate.
That's what seems to be my problem. Wrong
path in env, something missing, etc.



Run the script command.  Do something which shows what you think is

a problem.  Exit from the shell, and paste the contents of the
typescript file created into email so you can show exactly what the
error message is.


--
-Chuck

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to

[EMAIL PROTECTED]





Okay, I see I'm in such a confused state that I appear
to be confusing others. I had read somewhere that you
can go into a port dir you want to install, and do
make extract  then cd into the work dir just created,
you could do a ./configure with some option afterward
that would show you all the available arguments/options
you can include when you configure it before making it,
instead of reading the makefile. Then, in that dir, you
do ./configure --arguments --options to get it ready
to build it the way you want. And, instead of that, you
can also do ./configure \ which puts you in a shell on
the next line where you enter all the arguments and then
exit on an empty line when you're done. Which, btw, works
for me. I hope this time I've made it more clear. And
no, I'm not trying to build binutils.



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]



Okay, you'll have to go back to the top of this
message to follow from there to here. You top
posted, is what I'm saying. Not complaining,
just letting you know how to follow the message.
/.configure --help works, but only with the
complete path I mentioned above. It does, on
the other hand, work okay in the form
./configure \ which is also explained above.
I probably just don't understand enough  will
keep playing with it. I was just lazy  didn't
want to peruse the makefile, write down or print
the arguments I wanted to use,  they type them
in after make. Thanks for the reply.


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (FreeBSD)

iD8DBQFCsi2Xy0Ty5RZE55oRAkF4AJ0dqTgwjHOn0vx2Xy5cg8CxQnOUEQCgiMNj
HOCCU8g5YAr+DsH6OpV/B6Q=
=s8Nl
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]