Reconfiguring FreeBSD Ports - Remove OPTIONS config For Any Port
Q. While building Apache port I was presented with a menu from which I selected certain build options. However, certain option giving out error as follows:
===> apache-2.2.8 mod_mem_cache requires WITH_THREADS.
*** Error code 1
All I wanted to do is disable mod_mem_cache and build Apache again. Unfortunately, it is not allowing me to clear out configuration option. How do I remove all selected options and allow me to start over again?
A. There are many ways to clear out configuration options under FreeBSD. make command offers various options to revisit CONFIG menu to add, remove, or change options after a port has been built.
make rmconfig option
The simplest one is type command make rmconfig. First login as root; go into the directory containing the port and type:
# cd /usr/ports/www/apache22
# make rmconfig
Output:
===> Removing user-configured options for apache-2.2.8
Use 'make config' to modify settings
Another option is type make config.
# make config
# make install clean
To display OPTIONS config for port, enter:
# make showconfig
See the man page ports for more information:
$ make ports
Subscribe to our free e-mail newsletter or RSS feed to get all updates.
You can Email this page to a friend.
Related Other Helpful FAQs:
- How do I install and search FreeBSD ports or a package?
- OpenBSD Install Ports Collection
- FreeBSD install Perl language
- FreeBSD Install gnupg Cryptographic Software
- How To Upgrade FreeBSD 6.3 to 7.0 Stable Release
Discussion on This FAQ
Leave a Reply
We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!
Tags: apache 2, configuration option, freebsd package management, freebsd ports, make command, make config, make rmconfig, man page, ports



February 27th, 2008 at 1:55 pm
Thanks! I still find it hard to find the right documentation on how to use these ports-commands on FreeBSD…
Can’t remember I ever heard of “rmconfig”.
February 27th, 2008 at 4:01 pm
BOK,
man ports has all info.