DaemonForums  

Go Back   DaemonForums > NetBSD > NetBSD Package System (pkgsrc)

NetBSD Package System (pkgsrc) Installation and upgrading of packages on NetBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 10th April 2009
Graaf_van_Vlaanderen Graaf_van_Vlaanderen is offline
Port Guard
 
Join Date: Apr 2009
Posts: 10
Thanked 0 Times in 0 Posts
Default Failed building pkg_install

After a fresh install and pkgsrc install, I wanted to build some packages,
however 'pkg_install' failed. I received the following error:

Code:
checking how to run the C++ preprocessor... /lib/cpp
configure: error: C++ preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/pkgtools/pkg_install
WARNING: *** Please consider adding c++ to USE_LANGUAGES in the package Makefile.
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/pkgtools/pkg_install
Hjordis#
Adding

Code:
USE_LANGUAGE= c c++
.include "../../mk/bsd.pkg.mk"
like suggested doesn't seem to help.

I have absolutely no idea how to solve this.
Reply With Quote
  #2   (View Single Post)  
Old 15th April 2009
Meta_Ridley Meta_Ridley is offline
OFM Addict
 
Join Date: May 2008
Posts: 21
Thanked 3 Times in 3 Posts
Default

Looks like it's trying to find the C preprocessor in the wrong place. On my system (NetBSD 4.0.1) it's in /usr/bin/cpp. Your error message says it's looking in /lib/cpp. Unfortunately other than making sure that /usr/bin is in your PATH variable (check your .profile and/or .cshrc file), I don't know how to help you.

I guess a workaround is to delete whatever is in /lib/cpp and make a symlink in there to /usr/bin/cpp.
Reply With Quote
  #3   (View Single Post)  
Old 18th April 2009
Graaf_van_Vlaanderen Graaf_van_Vlaanderen is offline
Port Guard
 
Join Date: Apr 2009
Posts: 10
Thanked 0 Times in 0 Posts
Default

I solved it 'the easy way' by just downloading and manual installing this particular package.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Building a New System, Ideas ninjatux General Hardware 19 20th May 2009 09:54 AM
Problem Building Openoffice-3 Alphalutra1 FreeBSD Ports and Packages 1 1st May 2009 04:22 AM
Building a Server with FreeBSD 7 anomie Book reviews 10 16th April 2009 01:13 PM
Linking and building vbox Mr-Biscuit FreeBSD General 3 3rd October 2008 08:27 AM
FreeBSD 7.0 kernel building... daemonFromHeaven FreeBSD Installation and Upgrading 4 3rd September 2008 02:42 PM


All times are GMT. The time now is 06:32 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick