Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have install the LFS system , after that I tried to install the gentoo prefix on my system. But it comes error:

I'm going to check for some variables in your environment now:  
  it appears ASFLAGS is not set :)  
  it appears CFLAGS is not set :)  
  it appears CPPFLAGS is not set :)   
  it appears CXXFLAGS is not set :)  
  it appears DYLD_LIBRARY_PATH is not set :)  
  it appears GREP_OPTIONS is not set :)  
  it appears LDFLAGS is not set :)  
  it appears LD_LIBRARY_PATH is not set :)  
  it appears LIBPATH is not set :)  
  it appears PERL_MM_OPT is not set :)  
  uh oh, PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/opt/kde/lib/pkgconfig:/opt/kde/share  /pkgconfig:/opt/qt/lib/pkgconfig:/opt/lib/pkgconfig:/opt/share/pkgconfig :(  

Ahem, your shell environment contains some variables I'm allergic to:  
  PKG_CONFIG_PATH  
These flags can and will influence the way in which packages compile.  
In fact, they have a long standing tradition to break things.  I really  
prefer to be on my own here.  So please make sure you disable these  
environment variables in your shell initialisation files.  After you've  
done that, you can run me again.  

How can i set these environment variables? I tried to echo these flags on my gentoo, but it output nothing.

share|improve this question

migrated from stackoverflow.com Apr 23 '13 at 18:53

This question came from our site for professional and enthusiast programmers.

    
unset PKG_CONFIG_PATH. –  jordanm Apr 23 '13 at 16:57
    
Sorry for replied you so later. I tried unset PKG_CONFIG_PATH,and run the bootrstrap-prefix.sh script again. It comes the same error. –  zjhui May 28 '13 at 8:25
    
Add unset PKG_CONFIG_PATH to your ~/.bashrc file. –  Wilfred Hughes Apr 2 at 9:30
add comment

1 Answer

The first ones are alright, it checks if they are unset. The last one, you can just do unset PKG_CONFIG_PATH. You may opt to install Gentoo Linux itself if you come across more problems, it is lightweight enough compared to LFS and you can always try to trim it down if you feel it is not.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.