#189 new
John Mark Schofield

Installation Errors on FreeBSD 7.2 as Non-Root User

Reported by John Mark Schofield | March 11th, 2010 @ 01:07 AM

I'm attempting to install RedCloth as a non-root user on FreeBSD 7.2; it installs to ~/.gem, but then errors out when it attempts to chown things to root, which of course I can't do.

$ uname -a FreeBSD schof.nfshost.com 7.2-RELEASE-p1 FreeBSD 7.2-RELEASE-p1 #2: Wed Jun 10 23:03:03 UTC 2009 root@x4:/data/f3/freebsd7/i386/obj/data/f3/freebsd7/src/sys/NFSN32 i386

Long error output follows:

$ gem install RedCloth WARNING: Installing to ~/.gem since /usr/local/lib/ruby/gems/1.8 and

  /usr/local/bin aren't both writable.

Building native extensions. This could take a while...
ERROR: Error installing RedCloth:

ERROR: Failed to build gem native extension.

/usr/local/bin/ruby18 extconf.rb creating Makefile

make
cc -I. -I/usr/local/lib/ruby/1.8/i386-freebsd7 -I/usr/local/lib/ruby/1.8/i386-freebsd7 -I. -fPIC -O2 -fno-strict-aliasing -pipe -fPIC -O2 -c redcloth_scan.c
ext/redcloth_scan/redcloth_scan.c.rl:228:2: warning: no newline at end of file
cc -I. -I/usr/local/lib/ruby/1.8/i386-freebsd7 -I/usr/local/lib/ruby/1.8/i386-freebsd7 -I. -fPIC -O2 -fno-strict-aliasing -pipe -fPIC -O2 -c redcloth_inline.c
cc -I. -I/usr/local/lib/ruby/1.8/i386-freebsd7 -I/usr/local/lib/ruby/1.8/i386-freebsd7 -I. -fPIC -O2 -fno-strict-aliasing -pipe -fPIC -O2 -c redcloth_attributes.c
ext/redcloth_scan/redcloth_attributes.c.rl:56:2: warning: no newline at end of file
cc -shared -o redcloth_scan.so redcloth_scan.o redcloth_inline.o redcloth_attributes.o -L. -L/usr/local/lib -Wl,-R/usr/local/lib -L. -rdynamic -Wl,-soname,redcloth_scan.so -Wl,-R -Wl,/usr/local/lib -L/usr/local/lib -lruby18 -lrt -lcrypt -lm -rpath=/usr/lib:/usr/local/lib

make install
/usr/bin/install -c -o root -g wheel -m 0755 redcloth_scan.so /home/private/.gem/ruby/1.8/gems/RedCloth-4.2.3/lib install: /home/private/.gem/ruby/1.8/gems/RedCloth-4.2.3/lib/redcloth_scan.so: chown/chgrp: Operation not permitted
*** Error code 71

Stop in /home/private/.gem/ruby/1.8/gems/RedCloth-4.2.3/ext/redcloth_scan.

Gem files will remain installed in /home/private/.gem/ruby/1.8/gems/RedCloth-4.2.3 for inspection.
Results logged to /home/private/.gem/ruby/1.8/gems/RedCloth-4.2.3/ext/redcloth_scan/gem_make.out

No comments found

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

RedCloth is a Ruby library for converting Textile into HTML

Shared Ticket Bins

People watching this ticket

Pages