They do have Mercurial installed. And I can execute software in my
home directory.
Can I check out, say, the 3.0.2 tag of Nanoc using hg, and then run it
from my home directory without actually installing it?
Thanks very much!
Schof
Hi,
On UNIX-like systems, you can pretty much always install any software without root access. The standard ./configure && make && make install approach allows it (with ./configure --prefix=$HOME). With Rubygems, I believe you can invoke “gem” without sudo; this will cause the gem to be installed in ~/.gems if I’m not mistaken.
Personally, I am rather fond of rvm for managing my Ruby installations; it allows multiple Ruby versions along with rubygems to be installed without needing root access at all. This may be something worth looking into; check out http://rvm.beginrescueend.com/install/.
You can also clone the nanoc repository (either the main Mercurial one or the git mirror) and the bin/ directory in there to your $PATH, although I believe this is not the easiest approach.
Hope this helps,
Denis
--
Denis Defreyne
denis.d...@stoneship.org
Thanks very much for the quick reply, Denis!
I tried the clone option, and no luck. My results follow:
$ hg clone -r 3.0.2 http://projects.stoneship.org/hg/nanoc/
$ ls
nanoc
$ ./nanoc/bin/nanoc3
/home/private/nanoc/lib/nanoc3/cli.rb:7:in `require': no such file to
load -- cri (LoadError)
from /home/private/nanoc/lib/nanoc3/cli.rb:7
from ./nanoc/bin/nanoc3:9:in `require'
from ./nanoc/bin/nanoc3:9
$
Am I missing some obvious steps here? This seemed like the easiest
option, but no dice.
If there's a quick fix for this, please let me know. Otherwise I'll
check out rvm was you suggest.
Thanks!
John
> I tried the clone option, and no luck. My results follow:
>
> $ hg clone -r 3.0.2 http://projects.stoneship.org/hg/nanoc/
> $ ls
> nanoc
> $ ./nanoc/bin/nanoc3
> /home/private/nanoc/lib/nanoc3/cli.rb:7:in `require': no such file to
> load -- cri (LoadError)
> from /home/private/nanoc/lib/nanoc3/cli.rb:7
> from ./nanoc/bin/nanoc3:9:in `require'
> from ./nanoc/bin/nanoc3:9
> $
>
>
> Am I missing some obvious steps here? This seemed like the easiest
> option, but no dice.
>
> If there's a quick fix for this, please let me know. Otherwise I'll
> check out rvm was you suggest.
Hi,
nanoc depends on cri. You’ll need to install it first: “gem install cri”. Rubygems takes care of that when installing nanoc using “gem install”. You may also need to make sure rubygems is loaded; set $RUBYOPT (in ~/.profile or so) to “rrubygems”, i.e. export RUBYOPT="rrubygems".
Installed and running, Denis! Thanks very much!
John