CygwinなRVMにreadlineを入れようとするとパッチが当たらない
エラーメッセージは
$ rvm pkg install readline Fetching readline-5.2.tar.gz to /home/shingo/.rvm/archives % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 1989k 100 1989k 0 0 62929 0 0:00:32 0:00:32 --:--:-- 123k 100 1989k 100 1989k 0 0 61992 0 0:00:32 0:00:32 --:--:-- 61992Extracting readline-5.2.tar.gz to /home/shingo/.rvm/src Applying patch '/home/shingo/.rvm/patches/readline-5.2/shobj-conf.patch'... Configuring readline in /home/shingo/.rvm/src/readline-5.2. Compiling readline in /home/shingo/.rvm/src/readline-5.2. Installing readline to /home/shingo/.rvm/usr Fetching readline-6.2.tar.gz to /home/shingo/.rvm/archives % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 2224k 100 2224k 0 0 28754 0 0:01:19 0:01:19 --:--:-- 119k 100 2224k 100 2224k 0 0 28599 0 0:01:19 0:01:19 --:--:-- 28599Extracting readline-6.2.tar.gz to /home/shingo/.rvm/src Applying patch '/home/shingo/.rvm/patches/readline-6.2/patch-shobj-conf.diff'... ERROR: Error running 'patch -p0 -f < /home/shingo/.rvm/patches/readline-6.2/patch-shobj-conf.diff', please read /home/shingo/.rvm/log/readline/patch.log ERROR: Patch /home/shingo/.rvm/patches/readline-6.2/patch-shobj-conf.diff did not apply cleanly... back to the patching board :(
とかなります。
当てようとしていたパッチは
Mac OS X(darwin)向けのやつだったんで、~/.rvm/patches/readline-6.2/patch-shobj-conf.diffの中身は
全行削除!
再ビルドすると
平和に完了しましたw
$ rvm pkg install readline Fetching readline-5.2.tar.gz to /home/shingo/.rvm/archives Extracting readline-5.2.tar.gz to /home/shingo/.rvm/src Applying patch '/home/shingo/.rvm/patches/readline-5.2/shobj-conf.patch'... Configuring readline in /home/shingo/.rvm/src/readline-5.2. Compiling readline in /home/shingo/.rvm/src/readline-5.2. Installing readline to /home/shingo/.rvm/usr Fetching readline-6.2.tar.gz to /home/shingo/.rvm/archives Extracting readline-6.2.tar.gz to /home/shingo/.rvm/src Applying patch '/home/shingo/.rvm/patches/readline-6.2/patch-shobj-conf.diff'... Configuring readline in /home/shingo/.rvm/src/readline-6.2. Compiling readline in /home/shingo/.rvm/src/readline-6.2. Installing readline to /home/shingo/.rvm/usr