Error while installing iconv on windows by ruby2.0.0

前端 未结 2 1847
我寻月下人不归
我寻月下人不归 2021-01-18 11:37

Error while installing iconv on windows by ruby2.0.0
Error while installing iconv on windows by ruby2.0.0

I\'m trying to install the iconv , but when I run the

2条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-18 12:12

    I had this problem this evening (Windows 7, Ruby 1.9.3). The solution in my case was as follows:

    1. Install the "Complete package, except sources" from http://gnuwin32.sourceforge.net/packages/libiconv.htm

    2. Run gem install iconv -v '1.0.4' -- --with-iconv-dir=/path/to/GnuWin32

    If that doesn't work, I also followed the instructions here first: http://donpepeto.com/2014/09/20/fixing-c-libraries-on-your-rubyrails-install-on-windows/ (Copying the contents of /bin, /include and /lib from the GnuWin32 install) They didn't work on their own, but once I'd run the setup, I was able to install the gem, so maybe that helped. I also got an error about a missing .gitignore, but I ignored that, ran gem install... again and it worked.

提交回复
热议问题