install --withSomeFlag [RESOLVED: variants & targets]

Instruct ICC instructicc at hotmail.com
Tue Oct 9 09:19:24 PDT 2007


> > I installed php5-gtk with "sudo port install php5-gtk" and I  
> > noticed that mysql functions are not installed.
> > /opt/local/bin/php-config has configure_options '--without-mysql'  
> > which I would need to be '--with-mysql'.
> >
> > I was thinking of modifying php-config and somehow launch
> > ./configure
> > make
> > sudo make install
> > to reconfigure and reinstall with this flag, but I cannot find such  
> > a "build from source" directory.  Probably "clean"ed?
> 
> there are two ways - using a "variant" or doing it manually. For the  
> most common configurations, variants already exist, check "port  
> variants <portname>"
> 
> the different phases for fetching, cheking, unpacking, patching,  
> configuring, installing and activating can be run by themselves (see  
> port(1) "targets")
> 
> the "build" directory is under /opt/local/var/macports/build/
> 
> when I had problems with a port that would not build, I let it run  
> until it stopped with an error it had during build, and manually  
> changed stuff in the build directory until it built cleanly. When  
> make finished, I let port install it into destroot to check it there  
> with chroot, and the let it install for real.
> 
> More elegant is patching the port file itself, that drives the  
> process, but I didn't know that, then. "port file <portname>" shows  
> you the port file, where you can change e.g. arguments for configure,  
> or define a new variant.
> 
> regards
> Florenz

Sweet.  You've just expanded my set of useful commands.

Tuesday is turning out to be a lot better than Monday.

"man port" is your friend.
Read it...
Reeeead it...

Thanks.

_________________________________________________________________
Peek-a-boo FREE Tricks & Treats for You!
http://www.reallivemoms.com?ocid=TXT_TAGHM&loc=us
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-users/attachments/20071009/fdbf788e/attachment.html


More information about the macports-users mailing list