I'm running into an issue installing some packages on FreeBSD 8.2. I realize some of what the problem is but am not certain on the process for remedying the issue.
For example, I'm trying to install apache from ports. About 15 minutes into the process I am left at this step:
checking how to run the C++ preprocessor... /lib/cpp
configure: error: in `/usr/ports/devel/libtool/work/libtool-2.4':
configure: error: C++ preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details
Relevant details in config.log:
configure:13511: /lib/cpp conftest.cpp
./configure: line 1968: /lib/cpp: No such file or directory
configure:13511: /lib/cpp conftest.cpp
./configure: line 1968: /lib/cpp: No such file or directory
configure:13550: result: /lib/cpp
configure:13570: /lib/cpp conftest.cpp
./configure: line 1968: /lib/cpp: No such file or directory
configure:13570: /lib/cpp conftest.cpp
./configure: line 1968: /lib/cpp: No such file or directory
configure:13602: error: C++ preprocessor "/lib/cpp" fails sanity check
ac_cv_prog_CXXCPP=/lib/cpp
CXXCPP='/lib/cpp'
So, I've gathered the error is with the libtool-2.4 package. I understand that the issue in this case is that there is no /lib/cpp on my installation. Easy fix (or so I thought). I have changed directories to /usr/ports/devel/libtool/work/libtool-2.4 and tried to install that port manually while specifying the correct location of /usr/bin/cpp with configure.
However, then I still get a similar output:
checking how to run the C++ preprocessor... /usr/bin/cpp
configure: error: in `/usr/ports/devel/libtool/work/libtool-2.4':
configure: error: C++ preprocessor "/usr/bin/cpp" fails sanity check
See `config.log' for more details
Looks similar, but in config.log there are more details:
configure:13570: /usr/bin/cpp conftest.cpp
cpp: error trying to exec 'cc1plus': execvp: No such file or directory
configure:13570: /usr/bin/cpp conftest.cpp
cpp: error trying to exec 'cc1plus': execvp: No such file or directory
configure:13602: error: C++ preprocessor "/usr/bin/cpp" fails sanity check
ac_cv_env_CXXCPP_value=/usr/bin/cpp
ac_cv_prog_CXXCPP=/usr/bin/cpp
CXXCPP='/usr/bin/cpp'
I know the issue is probably simple but through some simple trial and error and a fair amount of searching around the web, I can't find the solution to this. Any thoughts on how to get past this issue?