简体   繁体   中英

Unable to locate file extconf.rb for ruby 1.8.7 in centos?

I have got require': no such file to load -- readline (LoadError) error.To solve this issue i have used following command.

yum install ncurses-devel readline-devel  

To further proceed the following commands

ruby extconf.rb
make && make install

I need to locate extconf.rb.

EDIT: I have tried 'find / -name extconf.rb' but no result matches ../ext/readline/extconf.rb

extconf.rb is inside the archive of the Ruby library you are trying to compile, in this case readline. So basically you have to go into wherever the source code of Ruby is stored and issue the commands you mentioned, eg

$ /usr/local/src/ruby-1.9.2-p0/ext/readline
$ ruby extconf.rb
$ make install

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM