Giter VIP home page Giter VIP logo

Comments (17)

mxcl avatar mxcl commented on May 10, 2024

Could you provide the output from:

brew list pkg-config

And

pkg-config --debug

Thanks.

from legacy-homebrew.

KieranP avatar KieranP commented on May 10, 2024

http://gist.github.com/185724 <- pkg-config is in the path, and matching the brew installed version.

from legacy-homebrew.

mxcl avatar mxcl commented on May 10, 2024

And /opt/local/bin is in the PATH?

from legacy-homebrew.

KieranP avatar KieranP commented on May 10, 2024

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.

mxcl avatar mxcl commented on May 10, 2024

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.

KieranP avatar KieranP commented on May 10, 2024

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.

mxcl avatar mxcl commented on May 10, 2024

How was your system corrupted?

from legacy-homebrew.

KieranP avatar KieranP commented on May 10, 2024

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.

mxcl avatar mxcl commented on May 10, 2024

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.

mxcl avatar mxcl commented on May 10, 2024

I still can't fathom why the glib can't find pkg-config though.

from legacy-homebrew.

KieranP avatar KieranP commented on May 10, 2024

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.

KieranP avatar KieranP commented on May 10, 2024

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.

sophiebits avatar sophiebits commented on May 10, 2024

Hmm… are you using bash?

from legacy-homebrew.

KieranP avatar KieranP commented on May 10, 2024

I've tried with both bash and zsh. Same issue.

from legacy-homebrew.

KieranP avatar KieranP commented on May 10, 2024

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.

mxcl avatar mxcl commented on May 10, 2024

Well that was pretty stupid of me. Sorry about that.

from legacy-homebrew.

KieranP avatar KieranP commented on May 10, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.