I managed to run RSpec without setting the GEM_PATH environment variable manually. Shay. ------------------------- Shay Friedman Author of "IronRuby Unleashed" http://www.IronShay.com Follow me: http://twitter.com/ironshay On 9/21/09, Mohammad Azam <azamsharp at gmail.com> wrote:> Hi, > I just downloaded the RSpec gem. Previous times I have manually setup the > environment variable for IronRuby gems. If I am using IronRuby 0.9 do I have > to set up the path for gems manually. > > Thanks, > Azam > > -- > Mohammad Azam > MVP (Microsoft Valuable Professional) > www.highoncoding.com > www.azamsharp.com >
Can you echo your GEM_PATH? Ryan Riley ryan.riley at panesofglass.org http://panesofglass.org/ http://wizardsofsmart.net/ On Mon, Sep 21, 2009 at 11:26 AM, Mohammad Azam <azamsharp at gmail.com> wrote:> Not sure what is wrong on my side! > I have already put the path to ir.exe.config in the environment variable. > But I am not able to run the igem command unless I put the path of igem in > the environment variable. > > > On Mon, Sep 21, 2009 at 11:01 AM, Shay Friedman <shay.friedman at gmail.com>wrote: > >> I managed to run RSpec without setting the GEM_PATH environment >> variable manually. >> >> Shay. >> ------------------------- >> Shay Friedman >> Author of "IronRuby Unleashed" >> http://www.IronShay.com >> Follow me: http://twitter.com/ironshay >> >> On 9/21/09, Mohammad Azam <azamsharp at gmail.com> wrote: >> > Hi, >> > I just downloaded the RSpec gem. Previous times I have manually setup >> the >> > environment variable for IronRuby gems. If I am using IronRuby 0.9 do I >> have >> > to set up the path for gems manually. >> > >> > Thanks, >> > Azam >> > >> > -- >> > Mohammad Azam >> > MVP (Microsoft Valuable Professional) >> > www.highoncoding.com >> > www.azamsharp.com >> > >> _______________________________________________ >> Ironruby-core mailing list >> Ironruby-core at rubyforge.org >> http://rubyforge.org/mailman/listinfo/ironruby-core >> > > > > -- > Mohammad Azam > MVP (Microsoft Valuable Professional) > www.highoncoding.com > www.azamsharp.com > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20090921/d542cc80/attachment.html>
Are you using dev.bat? Ryan Riley ryan.riley at panesofglass.org http://panesofglass.org/ http://wizardsofsmart.net/ On Mon, Sep 21, 2009 at 12:32 PM, Mohammad Azam <azamsharp at gmail.com> wrote:> I mean: > echo $GEM_PATH > > return > > $GEM_PATH > > Seems like it is not set! Not sure why! > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20090921/87bffada/attachment.html>
Yes, dev.bat will inject the default environment variables for you. That''s not the root of the problem necessarily, but it should help get your gems in the right place. Ryan Riley ryan.riley at panesofglass.org http://panesofglass.org/ http://wizardsofsmart.net/ On Mon, Sep 21, 2009 at 12:39 PM, Mohammad Azam <azamsharp at gmail.com> wrote:> No! > Do I have to click on dev.bat in order to inject the environment > variables? > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20090921/69e9e27f/attachment.html>
Hi I needed to do the following to get it to install in cmd.exe SET MERLIN_ROOT='''' in powershell $env:merlin_root='''' igem install watir but... I did install the user-choices gem from tar archive trying to find a way out. I''m using ironruby from the git HEAD Because it installs fine for me can you also give me the following env variables echo %PATH% echo %GEM_PATH% igem env location where you extracted the ironruby binaries maybe we can find a way out --- Met vriendelijke groeten - Best regards - Salutations Ivan Porto Carrero GSM: +32.486.787.582 Blog: http://flanders.co.nz Twitter: http://twitter.com/casualjim Author of IronRuby in Action (http://manning.com/carrero) On Mon, Sep 21, 2009 at 8:25 PM, Mohammad Azam <azamsharp at gmail.com> wrote:> Yup! I ran that but nothing happened. So, I manually placed the gem > directory path in the environment variables. > > > On Mon, Sep 21, 2009 at 1:13 PM, Jimmy Schementi < > Jimmy.Schementi at microsoft.com> wrote: > >> There is only one: Merlin/Main/Languages/Ruby/Scripts/Dev.bat >> http://wiki.github.com/ironruby/ironruby/devbat >> >> ------------------------------ >> *From:* ironruby-core-bounces at rubyforge.org [ >> ironruby-core-bounces at rubyforge.org] on behalf of Mohammad Azam [ >> azamsharp at gmail.com] >> *Sent:* Monday, September 21, 2009 11:10 AM >> *To:* ironruby-core at rubyforge.org >> *Subject:* Re: [Ironruby-core] Manually Setting the Gems Path >> >> Which dev.bat to use since there are three of them? >> >> On Mon, Sep 21, 2009 at 1:02 PM, Mohammad Azam <azamsharp at gmail.com>wrote: >> >>> I am trying to hook up Watir with IronRuby but since I cannot use the >>> following >>> >>> ir.exe igem install watir >>> >>> I have downloaded Watir for Ruby (Not IronRuby). I have setup the path >>> to the ruby libraries in the ir.exe.config file with "c:\ruby" >>> >>> But still I am not able to run Watir. I get the exception >>> >>> require no such file to load ----- watir >>> >>> >>> >>> >>> >>> On Mon, Sep 21, 2009 at 12:43 PM, Ryan Riley < >>> ryan.riley at panesofglass.org> wrote: >>> >>>> Yes, dev.bat will inject the default environment variables for you. >>>> That''s not the root of the problem necessarily, but it should help get your >>>> gems in the right place. >>>> >>>> >>>> Ryan Riley >>>> ryan.riley at panesofglass.org >>>> http://panesofglass.org/ >>>> http://wizardsofsmart.net/ >>>> >>>> >>>> On Mon, Sep 21, 2009 at 12:39 PM, Mohammad Azam <azamsharp at gmail.com>wrote: >>>> >>>>> No! >>>>> Do I have to click on dev.bat in order to inject the environment >>>>> variables? >>>>> >>>>> >>>> _______________________________________________ >>>> Ironruby-core mailing list >>>> Ironruby-core at rubyforge.org >>>> http://rubyforge.org/mailman/listinfo/ironruby-core >>>> >>>> >>> >>> >>> -- >>> Mohammad Azam >>> MVP (Microsoft Valuable Professional) >>> www.highoncoding.com >>> www.azamsharp.com >>> >> >> >> >> -- >> Mohammad Azam >> MVP (Microsoft Valuable Professional) >> www.highoncoding.com >> www.azamsharp.com >> >> _______________________________________________ >> Ironruby-core mailing list >> Ironruby-core at rubyforge.org >> http://rubyforge.org/mailman/listinfo/ironruby-core >> >> > > > -- > Mohammad Azam > MVP (Microsoft Valuable Professional) > www.highoncoding.com > www.azamsharp.com > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20090921/2d023fa3/attachment.html>
But I get as far as Jimmy too :) On Mon, Sep 21, 2009 at 9:06 PM, Jimmy Schementi < Jimmy.Schementi at microsoft.com> wrote:> I installed water with Ruby: > > > > > gem install water > > > > Then I made sure GEM_PATH was set to Ruby''s gem location: > > > > > set GEM_PATH=C:\Ruby\lib\ruby\gems\1.8\ > > > > And then running IronRuby shows I can require ''watir'' just fine: > > > > >>> require ''rubygems'' > > => true > > >>> Gem.path > > => ["C:/Ruby/lib/ruby/gems/1.8/"] > > >>> require ''watir'' > > => true > > > > However, looks like Watir ships with a copy of win32ole, which will need to > be updated to our version: > > > > >>> Watir::IE > > :0:in `require'': The module was expected to contain an assembly manifest. > (Exception from HRESULT: 0x80131018) (LoadError) > > from custom_require.rb:30:in `require'' > > from > C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/win32ole.rb:5 > > from :0:in `require'' > > from custom_require.rb:30:in `require'' > > from C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie.rb:38 > > from :0 > > > > Even after fixing that, Watir depends on dl/import and WIN32API, so someone > we''ll need to port Watir to either not use those things, or write C# > implementations of those c-based libraries: > > > > >>> Watir::IE > > :0:in `require'': no such file to load -- dl (LoadError) > > from custom_require.rb:30:in `require'' > > from > C:/dev/ironruby/Merlin/External.LCA_RESTRICTED/Languages/Ruby/redist-libs/ruby/1.8/dl/import.rb:3 > > from :0:in `require'' > > from custom_require.rb:30:in `require'' > > from > C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/winClicker.rb:53 > > from :0:in `require'' > > from custom_require.rb:30:in `require'' > > from C:/Ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ie.rb:41 > > from :0 > > > > So for now, Watir won''t work on IronRuby because of its native Ruby > extension dependencies. I''ve got a bug to track this here: > http://ironruby.codeplex.com/WorkItem/View.aspx?WorkItemId=2532 > > > > ~js > > > > *From:* ironruby-core-bounces at rubyforge.org [mailto: > ironruby-core-bounces at rubyforge.org] *On Behalf Of *Mohammad Azam > *Sent:* Monday, September 21, 2009 11:25 AM > > *To:* ironruby-core at rubyforge.org > *Subject:* Re: [Ironruby-core] Manually Setting the Gems Path > > > > Yup! I ran that but nothing happened. So, I manually placed the gem > directory path in the environment variables. > > On Mon, Sep 21, 2009 at 1:13 PM, Jimmy Schementi < > Jimmy.Schementi at microsoft.com> wrote: > > There is only one: Merlin/Main/Languages/Ruby/Scripts/Dev.bat > > http://wiki.github.com/ironruby/ironruby/devbat > > > ------------------------------ > > *From:* ironruby-core-bounces at rubyforge.org [ > ironruby-core-bounces at rubyforge.org] on behalf of Mohammad Azam [ > azamsharp at gmail.com] > > *Sent:* Monday, September 21, 2009 11:10 AM > > > *To:* ironruby-core at rubyforge.org > *Subject:* Re: [Ironruby-core] Manually Setting the Gems Path > > > > Which dev.bat to use since there are three of them? > > On Mon, Sep 21, 2009 at 1:02 PM, Mohammad Azam <azamsharp at gmail.com> > wrote: > > I am trying to hook up Watir with IronRuby but since I cannot use the > following > > > > ir.exe igem install watir > > > > I have downloaded Watir for Ruby (Not IronRuby). I have setup the path to > the ruby libraries in the ir.exe.config file with "c:\ruby" > > > > But still I am not able to run Watir. I get the exception > > > > require no such file to load ----- watir > > > > > > > > > > On Mon, Sep 21, 2009 at 12:43 PM, Ryan Riley <ryan.riley at panesofglass.org> > wrote: > > Yes, dev.bat will inject the default environment variables for you. That''s > not the root of the problem necessarily, but it should help get your gems in > the right place. > > > > > Ryan Riley > ryan.riley at panesofglass.org > http://panesofglass.org/ > http://wizardsofsmart.net/ > > On Mon, Sep 21, 2009 at 12:39 PM, Mohammad Azam <azamsharp at gmail.com> > wrote: > > No! > > > > Do I have to click on dev.bat in order to inject the environment > variables? > > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > > > > -- > Mohammad Azam > MVP (Microsoft Valuable Professional) > www.highoncoding.com > www.azamsharp.com > > > > > -- > Mohammad Azam > MVP (Microsoft Valuable Professional) > www.highoncoding.com > www.azamsharp.com > > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > > > > > -- > Mohammad Azam > MVP (Microsoft Valuable Professional) > www.highoncoding.com > www.azamsharp.com > > _______________________________________________ > Ironruby-core mailing list > Ironruby-core at rubyforge.org > http://rubyforge.org/mailman/listinfo/ironruby-core > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20090921/dbd217f9/attachment.html>