Comments (17)
Could you provide the output from:
brew list pkg-config
And
pkg-config --debug
Thanks.
from legacy-homebrew.
http://gist.github.com/185724 <- pkg-config is in the path, and matching the brew installed version.
from legacy-homebrew.
And /opt/local/bin is in the PATH?
from legacy-homebrew.
The above gist already answers that.
$ which pkg-config
/opt/local/bin/pkg-config
But here is exactly what it has:
$ echo $PATH
/opt/local/bin:/Users/kieran/.gem/ruby/1.8/bin:/usr/local/mysql/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/usr/X11/bin
Update: Some additional info
$ echo $CPPFLAGS
-I/opt/local/include
$ echo $LDFLAGS
-L/opt/local/lib
$ ls -la /opt/local/bin/pkg-config
lrwxr-xr-x 1 kieran admin 40 7 Sep 19:35 /opt/local/bin/pkg-config -> ../Cellar/pkg-config/0.23/bin/pkg-config
Even with doing this:
$ export PATH=/opt/local/Cellar/pkg-config/0.23/bin:$PATH
The build fails to find pkg-config.
from legacy-homebrew.
Indeed, apologies, I'm pretty rushed with all this at the moment. I can't explain this at the moment. I need a test machine with Homebrew installed in a non standard location.
from legacy-homebrew.
Alright. Given that my original use of homebrew in /usr/local needed chmod changes which resulted in a corrupted system, after reinstalling the OS, I went with /opt/local. IMHO, it's better suited as the default path (outside of everything else completely). Also means things like MySQL and Git packages I've installed into /usr/local aren't mixed. Makes things much more manageable.
from legacy-homebrew.
How was your system corrupted?
from legacy-homebrew.
I chmod'd too much I guess. sudo and su wouldn't work, I had to delete several script just to get bash to let me in. Ended up having to reinstall the whole OS. My mistake though, not a homebrew bug. But it's the reason why I went with /opt/local over what the install guide suggests.
from legacy-homebrew.
Anything I can add to the README instructions to help other people not do the same thing? As I don't want to offer instructions that aren't clear enough and thus break people's systems, heh! :)
I don't want to change the recommendation as there are a number of advantages to defaulting there. But I would like to add warnings as necessary.
from legacy-homebrew.
I still can't fathom why the glib can't find pkg-config though.
from legacy-homebrew.
I think it stems from the fact that /usr/local was a root owned folder on a branch new install. Which meant that the whole 'no sudo' approach wouldn't work. I tried doing some chmoding, something stuffed up (human error) and before I knew it, everything in the console wouldn't work. sudo and su were crapped, which meant I couldn't chmod/chown the affected files.
You might suggest /opt/local for those who aren't comfortable tampering with system folders ^_^ It also seems a lot more seperated but functional for me, especially as some .pkg files install to /usr/local and clog the folders (git and mysql namely). I'm enjoying it in /opt/local , and not too many bugs, aside from the one in this ticket.
Which brings me back to the original bug report. I'm trying the latest homebrew, with the dependency resolution, to see if that helps. Will post to let you know how it goes.
from legacy-homebrew.
No luck. I did get it working by symlinking /usr/bin/pkg-config -> /opt/local/bin/pkg-config . According to homebrew, /opt/local/bin isn't in my path when compiling, but it is outside of it. Maybe this helps?
==> Warning! /opt/local/bin is not in your PATH
You can amend this by altering your ~/.bashrc file
==> Summary
/opt/local/Cellar/glib/2.20.5: 251 files, 6.1M, built in 2.1 minutes
kieran:~
% echo $PATH
/opt/local/bin:/usr/local/mysql/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/usr/X11/bin
from legacy-homebrew.
Hmm… are you using bash?
from legacy-homebrew.
I've tried with both bash and zsh. Same issue.
from legacy-homebrew.
Ok, traced it back to fix_PATH removing /opt/local/bin from the path during install. The fix (along with several other bug fixes and new features), can be found at http://github.com/KieranP/homebrew/commits/master
from legacy-homebrew.
Well that was pretty stupid of me. Sorry about that.
from legacy-homebrew.
With the changes to fix_PATH (removal of it rather), this works now. pkg-config is found. Closing issue.
from legacy-homebrew.
Related Issues (20)
- MC segmetation faults HOT 1
- ghost database spiritual blog HOT 1
- Creating qmake... gmake: *** No rule to make target `/var/lib/openshift/57596aab7628e1749b0000b0/app-root/runtime/srv/phantomjs/src/qt/qtbase/src/corelib/tools/qlocale_unix.cpp', needed by `qlocale_unix.o'. Stop.
- You need bison version 3.0 or greater.
- curl: one or more libs available at link-time are not available at run-time #48633 HOT 2
- Looks like there is a bug. HOT 1
- Homebrew website has invalid SSL cert HOT 1
- close
- problem installing homebrew/boneyard/clang-omp HOT 6
- Change build tbb with gcc in mac OSx HOT 1
- pip3 not installed HOT 1
- Still Impossible uninstall brew HOT 1
- gfortran compilation error HOT 1
- install error with Xcode8 HOT 1
- configure: error: cannot run C compiled programs. HOT 1
- error with every pip install could not find a version HOT 1
- brew install pyqt5 (only...) HOT 1
- pip ImportError HOT 1
- install error of control package on Macintosh HOT 1
- brew install rpm
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from legacy-homebrew.