Skip to content

Commit 521543e

Browse files
committed
Merge pull request #198 from Philzen/master
Added FreeBsd Installation Bumps / Troubleshooting Guide
2 parents 671bf66 + 9b2541b commit 521543e

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

install/freebsd/README.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# FreeBsd 8 / 9 Install Troubleshooting
2+
3+
## Naughty Gems
4+
5+
6+
- [charlock_holmes](#charlock-holmes-gem-install-fails-or-breaks-after-pkg-upgrade)
7+
8+
- [rugged](#rugged-gem-install-fails-wo-gmake)
9+
10+
### Charlock Holmes-Gem install fails or breaks after `pkg upgrade`
11+
12+
Every now and then `devel/icu` - or other dependencies of charlock_holmes - will get updated, sometimes invalidating the gem installation in the gitlab directory.
13+
14+
N.B. Your running server will continue normal operation in that case, but updates and/or rake commands in general may suddenly fail.
15+
16+
__Cure__ ([Kudos to herrBeesch](https://github.com/brianmario/charlock_holmes/issues/9#issuecomment-10370071))
17+
18+
On FreeBSD we need to tell the gem install routine where to look for certain dependencies:
19+
20+
```
21+
sudo gem install charlock_holmes -- --with-icu-dir=/usr/lib --with-opt-include=/usr/local/include/
22+
```
23+
24+
This process _should_ now succeed, provided _that_ it does, let's store those values in the build configuration for gitlab:
25+
26+
```
27+
sudo -u git -H bundle config build.charlock_holmes --with-opt-include=/usr/local/include/ --with-opt-lib=/usr/local/lib/
28+
```
29+
30+
Now you should be able to pickup where you were when you bumped into this :)
31+
32+
33+
34+
### Rugged-Gem install fails w/o gmake
35+
36+
```
37+
checking for gmake... no
38+
checking for make... yes
39+
-- /usr/bin/make -f Makefile.embed
40+
*** extconf.rb failed ***
41+
Could not create Makefile due to some reason, probably lack of necessary
42+
libraries and/or headers. Check the mkmf.log file for more details. You may
43+
need configuration options.
44+
```
45+
__Remedy__:
46+
47+
Make gmake available `sudo pkg install gmake` (or whatever freebsd install routine you prefer) and retry.
48+

0 commit comments

Comments
 (0)