ruby / psych

A libyaml wrapper for Ruby
MIT License
566 stars 206 forks source link

instructions for macports users #670

Closed jjb closed 7 months ago

jjb commented 7 months ago

This is probably not the best place to put this

and/or we can just add brew as well?

for homebrew, are the flags needed, or does it look in those paths by default?

can/should the project look into the macports paths by default as well?

tenderlove commented 7 months ago

Homebrew provides pkg-config files for libyaml, so I think that's how Psych picks it up.

Are you able to do this?

$ pkg-config --list-all | grep yaml
yaml-0.1          LibYAML - Library to parse and emit YAML
jjb commented 7 months ago
➔ pkg-config --list-all | grep yaml
➔
jjb commented 7 months ago
sudo port install pkgconfig

## open new terminal.....

➔ pkg-config --list-all | grep yaml
yaml-cpp        Yaml-cpp - A YAML parser and emitter for C++
yaml-0.1        LibYAML - Library to parse and emit YAML
jjb commented 7 months ago
sudo port uninstall pkgconfig
mv .bundle/config .bundle/config-back
gem uninstall psych
## open new window
gem install psych
# it breaks!
sudo port install pkgconfig
## open new terminal
gem install psych
# it works!

ARE YOU KIDDING ME HOW HAVE I BEEN PROGRAMMING FOR 25 YEARS AND DIDN'T KNOW ABOUT THIS