hey guys,
In this post of mine, I will show you how to install ‘contacts’ gem in your windows machine.
God, I searched google a lot for this and at last I found something interesting which I want to tell you.
I was working on linux, I switched to windows recently. During my project I thought to install contacts which will import my contacts from Gmail, Yahoo and Hotmail. When I write in command prompt:
C:\> gem install contacts
it gives me the following error
nmake
‘nmake’ is not recognized as an internal or external command,
operable program or batch file.
Gem files will remain installed in c:/ruby/lib/ruby/gems/1.8/gems/ferret-0.11.6
for inspection.
Results logged to c:/ruby/lib/ruby/gems/1.8/gems/ferret-0.11.6/ext/gem_make.out
I think lots of you have seen this kind of error, Now I am telling you the steps how to solve this
Concentrate on line this :
Gem files will remain installed in c:/ruby/lib/ruby/gems/1.8/gems/ferret-0.11.6
Now go to this Url
http://rubyforge.org/frs/?group_id=1028
and install the latest ferret gem having mswin32 version. Install it and run it, I think all of you know how to install gem manually 🙂
Then try to install contacts gem, It will run.
Just in case if it gives error again like this:
nmake
‘nmake’ is not recognized as an internal or external command,
operable program or batch file.
Gem files will remain installed in c:/ruby/lib/ruby/gems/1.8/gems/json-1.1.3 for
inspection.
Results logged to c:/ruby/lib/ruby/gems/1.8/gems/json-1.1.3/ext/json/ext/parser/
gem_make.out
Then go to this url:
http://rubyforge.org/frs/?group_id=953
and download the latest mswin32 gem of json and install it. After installing it try to run
gem install contacts
Your gem should install.
Still not working for me! Can you help?
Hi,
would you let me know contacts gem is installed on your windows m/c, or still you are facing problems to install it, if so let me know the command line errors
Regards,
Puneet
Thanks Puneet ,it’s work…..
thanks Puneet- this really saved me a lot of time.
Nice work huh!…
Hi Puneet,
Got help from this post..
But getting problem while I’m fetching contacts from Hotmail..
Any solution?
Plz.. need ur help..!
Thanks..
-Ganesh K
Hi ganesh,
your hotmail is not working because hotmail has changed its protocol and the gem has not been updated yet, lots of user are facing this kind of problem.. you can do 2 things at this situation..
1. either wait for the gem to be updated.
2. you can use plaxo, a javascript API which allows you to fetch contacts from Gmail, Hotmail, Yahoo, AOL and Outlook
you can find more information about this on this url:
http://www.plaxo.com/api/widget
let me know if it helps.
Cheers!!
Puneet Pandey
Hi Puneet,
Thanks for the post. I just installed in my windows system the gem. I got these respones in command line,
Successfully installed json-1.1.6-x86-mswin32
Successfully installed contacts-1.0.13
2 gems installed
Installing ri documentation for json-1.1.6-x86-mswin32…
No definition for cState_configure
No definition for cState_configure
Installing ri documentation for contacts-1.0.13…
Installing RDoc documentation for json-1.1.6-x86-mswin32…
No definition for cState_configure
No definition for cState_configure
Installing RDoc documentation for contacts-1.0.13…
C:\wamp\Ruby\lib\ruby\gems\1.8\gems>cd ferret-0.11.6
C:\wamp\Ruby\lib\ruby\gems\1.8\gems\ferret-0.11.6>dir
Volume in drive C is Hasten_7_C
Volume Serial Number is 64D8-E94E
Directory of C:\wamp\Ruby\lib\ruby\gems\1.8\gems\ferret-0.11.6
Now How can i check whether in my system the gem is installed properly.
Thanks
Rafeek
Hey Rafeek,
to check the specific version of gem(in your case its contacts) type in command prompt:
gem contacts list
it will show you the latest version of gem installed in ur system.
let me know if you have any doubts
Cheers!!
Puneet
Hi Puneet,
I have used the contacts gem to import mail accounts contacts for invite friends’ module in my application.
It was working perfectly; I have tested that before getting into live with Gmail, Yahoo and Hotmail.
Now, I was re-checking every feature on my site, so tried to import the contacts from Gmail, Yahoo and Hotmail is working perfectly as I tested before, but for Gmail is not working.
Then I was checking contacts gem what it is throwing the errors. It says,
C:/Ruby/lib/ruby/gems/1.8/gems/contacts-1.0.16/lib/contacts/gmail.rb:43:in `real_connect’: Username and password do not match (Contacts::AuthenticationError)
I have passed the correct username and password.
Is anyone facing the same problem?
If you have used the contacts gem in your project, please re-check / re-test that and let me know the status for Gmail domain.
Looking forwarded (suggestion and solutions for this issue),
Thanks,
Sathish Kumar
Hi Pandey,
It’s working fine thanks a lot
Glad to see, its working for you 🙂
Best Regards
Puneet Pandey