How do I get the Hpricot 0.6 Gem built with FreeBSD?

When I run rake gems: build with hpricot 0.6.164 on my FreeBSD server, I get:

Error: Could not create custom gem extension.

/ user / localbin / ruby18 extconf.rb gems: build RB_USER_INSTALL check on main () in -lc ... yes create Makefile

to do

make install / usr / bin / install -c -o root -g wheel -m 0755 hpricot_scan.so/user_directory/vendor/gems/hpricot-0.6.164/lib/universal-java1.6 install: / user_directory / vendor / gems /hpricot-0.6.164/lib/universal-java1.6/hpricot_scan.so: chown / chgrp: Operation not allowed *** Error code 71

Stop at / user_directory / vendor / gems / hpricot-0.6.164 / ext / hpricot_scan.

+1


source to share


1 answer


I figured out that I need to set RB_USER_INSTALL to true when running the rake gems: build command.

Example:



RB_USER_INSTALL = true rake: build

+2


source







All Articles