Nick Sieger: Virtual Ruby? http://blog.nicksieger.com/articles/2006/05/02/virtual-ruby en-us 40 "Virtual Ruby?" by Nick <p>Not a bad idea&#46; They seem like slightly different problems &#45;&#45; one is how to maintain multiple versions of your interpreter and environment on the same machine, and the other was made firstly for packaging&#46;</p> Fri, 05 May 2006 14:29:08 +0000 urn:uuid:656d1984-6c06-41aa-aff7-0244c095de8e http://blog.nicksieger.com/articles/2006/05/02/virtual-ruby#comment-9 "Virtual Ruby?" by dcgrigsby <p>BTW, you could use the &#45;&#45;eee&#45;justextract method on the RubScript2Exe to extract the files like a self extracting archive&#46; Then you&#8217;d have your complete environment right there, no?</p> Thu, 04 May 2006 18:13:49 +0000 urn:uuid:087143fa-3af3-43d1-b26a-b452ef5e1014 http://blog.nicksieger.com/articles/2006/05/02/virtual-ruby#comment-7 "Virtual Ruby?" by dcgrigsby <p>Isn&#8217;t this what RubyScript2Exe (<a href='http://www' rel="nofollow">http://www</a>&#46;erikveen&#46;dds&#46;nl/rubyscript2exe/index&#46;html) does, only that it also puts it all into one file (which, btw, can be &#8220;compiled&#8221; for most platforms)</p> Thu, 04 May 2006 18:09:20 +0000 urn:uuid:1f5a7e77-ece6-450c-9ba9-dce5a179b7ce http://blog.nicksieger.com/articles/2006/05/02/virtual-ruby#comment-6 Virtual Ruby? <p>I had a chance to dabble around with Python a tiny bit today, building the <a href="http://www.ltg.ed.ac.uk/~ht/xsv-status.html">XSV</a> XML schema validator&#46; Got it working fairly easily on my MacBook Pro after <a href="http://trac.caldersphere.net/projects/main/wiki/MacOSXIntel">a minor detour</a>&#46; Later, I needed to build another copy on a shared linux dev box where I didn&#8217;t have root access&#46; Now how does this work in Python? Fortunately, the answer was close at hand: <a href="http://peak.telecommunity.com/DevCenter/EasyInstall#creating-a-virtual-python">a virtual python instance</a>&#46; Nice! You can create a replica of the main python install, and add your personal site&#45;packages there&#46; The only thing that gets copied is the python executable plus a bunch of symlinks to the main libraries and packages&#46; After that point all you need to do is put your virtual python executable ahead of the main executable on your PATH&#46;</p> <p>If I were to install local packages/gems with Ruby, I&#8217;d probably either build my own Ruby or maintain a local packages directory and constantly customize RUBYLIB&#46; Seems like a suboptimal solution&#46; Has anyone attempted a virtual&#45;ruby&#46;rb that does the same as virtual&#45;python&#46;py?</p> Tue, 02 May 2006 18:56:00 +0000 urn:uuid:7db60b35-a488-4b32-836a-8588259561aa Nick Sieger http://blog.nicksieger.com/articles/2006/05/02/virtual-ruby ruby http://blog.nicksieger.com/articles/trackback/5