@@ -59,18 +59,49 @@ $ apt-get install libvips-dev
59
59
60
60
``` bash
61
61
$ brew tap homebrew/science
62
- $ brew install --use-llvm vips
62
+ $ brew install vips
63
63
```
64
64
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:
67
68
68
69
``` bash
69
- export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/lib/pkgconfig:/usr/X11/lib/pkgconfig
70
+ $ brew info vips
70
71
```
71
72
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
+ ```
74
105
75
106
TODO: Describe & test with macports.
76
107
@@ -85,18 +116,18 @@ platforms](https://github.com/jcupitt/ruby-vips/wiki/installation-on-various-pla
85
116
$ gem install ruby-vips
86
117
```
87
118
88
- Alternatively, for a debug build:
89
-
90
- ``` bash
91
- $ gem install ruby-vips -- --enable-debug
92
- ```
93
-
94
119
or include it in Gemfile:
95
120
96
121
``` ruby
97
122
gem ' ruby-vips'
98
123
```
99
124
125
+ For a debug build:
126
+
127
+ ``` bash
128
+ $ gem install ruby-vips -- --enable-debug
129
+ ```
130
+
100
131
## Documentation.
101
132
102
133
ruby-vips has [ rdoc
0 commit comments