From: Arun Tomar Date: 2012-05-14T19:56:33+09:00 Subject: Re: ispunity Little probs On 05/14/2012 04:08 PM, Ajith N. wrote: > Arun Tomar wrote in post #1060604: >> Hi! >> >> Certainly we'll help you and anyone who's trying to use ISPunity and >> facing any issue. >> I'm assuming that if you've followed the steps, you would have installed >> rvm and ruby 1.9.3 but ubuntu comes with ruby 1.8.7. what you need to do >> is to make your system use ruby 1.9.3 rather than the system default i.e >> 1.8.7. >> >> You can do that by the following command. >> >> rvm use 1.9.3 --default >> >> after that install the gem >> >> gem install ispunity >> >> create the config file as per your network . >> >> then run >> ispunity setup >> >> and put the following command in your cron settings to run after every 5 >> mins, so that it'll check for the dead gateways and automatically >> failover. >> ispunity monitor >> >> We'll be updating the documentation soon for the cron settings. >> >> Feel free to mail us. We are here to resolve any problems and improve >> the app based on the feedback. > > Hi Sir, I have done it as per ur instructions, and my current ruby > version is 1.9.3 but it still gives the same output as follows. Pls help > thanks. > > nanthiyadan@nanthiyadan-System-Product-Name:~$ sudo su > [sudo] password for nanthiyadan: > root@nanthiyadan-System-Product-Name:/home/nanthiyadan# rvm use 1.9.3 > --default > Using /usr/local/rvm/gems/ruby-1.9.3-p194 >> root@nanthiyadan-System-Product-Name:/home/nanthiyadan# rvm current >> ruby-1.9.3-p194 > root@nanthiyadan-System-Product-Name:/home/nanthiyadan# ispunity > /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in > `gem_original_require': > /var/lib/gems/1.8/gems/ispunity-0.0.4/lib/system_call.rb:22: undefined > (?...) sequence: /inet addr:(?(\d+[.]){3}\d+)/ (SyntaxError) > from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in > `require' > from /var/lib/gems/1.8/gems/ispunity-0.0.4/lib/isp_unity.rb:7 > from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in > `gem_original_require' > from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in > `require' > from /var/lib/gems/1.8/gems/ispunity-0.0.4/bin/ispunity:4 > from /usr/local/bin/ispunity:19:in `load' > from /usr/local/bin/ispunity:19 > root@nanthiyadan-System-Product-Name:/home/nanthiyadan# > Hi! Your system is still looking for ispunity gem in 1.8 folders. did you install ispunity after you confirmed that you are on ruby 1.9.3 [root@router ~]# ruby -v ruby 1.9.3p125 (2012-02-16 revision 34643) [x86_64-linux] [root@router ~]# gem list|grep ispunity ispunity (0.0.4, 0.0.3, 0.0.2, 0.0.1) if you get a similar output that means ispunity is installed in 1.9.3, if not, then install ispunity gem install ispunity if you still find your system searching for ispunity in 1.8.7, switch to 1.8.7 rvm use system then gem uninstall ispunity swtich to 1.9.3 rvm use 1.9.3 gem install ispunity and then try to run the commands. hope this helps. otherwise provide your gmail id, i can help you when you are online on gtalk or add mine tomar.arun@gmail.com -- Regards, Arun.