Skip to content
This repository was archived by the owner on Dec 7, 2017. It is now read-only.

Commit 81e52af

Browse files
committed
README updates
Update README OS X notes for the latest homebrew.
1 parent 97203f8 commit 81e52af

File tree

1 file changed

+43
-12
lines changed

1 file changed

+43
-12
lines changed

README.md

Lines changed: 43 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -59,18 +59,49 @@ $ apt-get install libvips-dev
5959

6060
```bash
6161
$ brew tap homebrew/science
62-
$ brew install --use-llvm vips
62+
$ brew install vips
6363
```
6464

65-
You may need to set your PKG_CONFIG_PATH before vips can see your libpng. Try
66-
something like:
65+
This will give you a very bare-bones vips, missing things like imagemagick
66+
loading, openslide support, FFTs, and so on. To get a list of all the optional
67+
dependencies, try:
6768

6869
```bash
69-
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/lib/pkgconfig:/usr/X11/lib/pkgconfig
70+
$ brew info vips
7071
```
7172

72-
See the Mac OS X Lion section in [Installation on various
73-
platforms](https://github.com/jcupitt/ruby-vips/wiki/installation-on-various-platforms).
73+
For a full-fat version, try:
74+
75+
```bash
76+
$ brew install vips --with-cfitsio --with-fftw --with-imagemagick \
77+
--with-libexif --with-liboil --with-libtiff --with-little-cms \
78+
--with-openexr --with-openslide --with-pango
79+
```
80+
81+
If you want to build things outside homebrew which depend on vips,
82+
such as ruby-vips, your pkg-config will need to be working. You
83+
need to point pkg-config at the homebrew area, and, additionally, at
84+
homebrew's libxml2 area:
85+
86+
In your .profile, add something like:
87+
88+
```bash
89+
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/local/opt/libxml2/lib/pkgconfig
90+
```
91+
92+
To verify that your vips install is correct and working, try:
93+
94+
```bash
95+
$ vips --version
96+
vips-7.32.1-Mon May 20 10:01:38 BST 2013
97+
```
98+
99+
To verrify that your pkg-config is working correctly with vips, try:
100+
101+
```bash
102+
$ pkg-config vips --libs
103+
-L/usr/local/Cellar/vips/7.32.1/lib ... a lot of stuff
104+
```
74105

75106
TODO: Describe & test with macports.
76107

@@ -85,18 +116,18 @@ platforms](https://github.com/jcupitt/ruby-vips/wiki/installation-on-various-pla
85116
$ gem install ruby-vips
86117
```
87118

88-
Alternatively, for a debug build:
89-
90-
```bash
91-
$ gem install ruby-vips -- --enable-debug
92-
```
93-
94119
or include it in Gemfile:
95120

96121
```ruby
97122
gem 'ruby-vips'
98123
```
99124

125+
For a debug build:
126+
127+
```bash
128+
$ gem install ruby-vips -- --enable-debug
129+
```
130+
100131
## Documentation.
101132

102133
ruby-vips has [rdoc

0 commit comments

Comments
 (0)