hi :D i''m using linux, and i tried to install fxruby.. there seem to be some problems with config script.. the following are what reported in the shell: /usr/bin/ruby1.8 /root/FXRuby-1.2.5/ext/fox12/extconf.rb /root/FXRuby-1.2.5/ext/fox12/extconf.rb:4:in `require'': no such file to load --mkmf (LoadError) from /root/FXRuby-1.2.5/ext/fox12/extconf.rb:4 config failed ''system /usr/bin/ruby1.8 /root/FXRuby-1.2.5/ext/fox12/extconf.rb '' failed Try ''ruby install.rb --help'' for detailed usage. tried googling, but it''s no help, anyone know what''s wrong? -- www.programer.name - my own personal blog : )
Jason Wang wrote:> hi :D i''m using linux, and i tried to install fxruby.. there seem to > be some problems with config script.. the following are what reported > in the shell: > /usr/bin/ruby1.8 /root/FXRuby-1.2.5/ext/fox12/extconf.rb > /root/FXRuby-1.2.5/ext/fox12/extconf.rb:4:in `require'': no such file > to load --mkmf (LoadError) > from /root/FXRuby-1.2.5/ext/fox12/extconf.rb:4 > config failed > ''system /usr/bin/ruby1.8 /root/FXRuby-1.2.5/ext/fox12/extconf.rb '' failed > Try ''ruby install.rb --help'' for detailed usage. > > tried googling, but it''s no help, anyone know what''s wrong?mkmf.rb is part of the ruby distribution (on my system it''s at /usr/local/lib/ruby/1.8/mkmf.rb), so maybe there is something wrong in there. To see where ruby is looking, you can try this: /usr/bin/ruby1.8 -e ''p $LOAD_PATH'' You can set the RUBYLIB env var to add paths.
mmm.. i''m really new to ruby.. not really sure what your talking about :| i tried typing in /usr/bin/ruby1.8 -e ''p $LOAD_PATH'', it just gave me a >, assuming that''s where you input ruby code? i tried searching for the file, can''t find it apparently.. i''m using the latest debian package from apt get.. do you know wat''s going on? -- www.programer.name - my own personal blog : )
Jason Wang wrote:> mmm.. i''m really new to ruby.. not really sure what your talking about > :| i tried typing in /usr/bin/ruby1.8 -e ''p $LOAD_PATH'', it just gave > me a >, assuming that''s where you input ruby code? i tried searching > for the file, can''t find it apparently.. i''m using the latest debian > package from apt get.. do you know wat''s going on?The > may mean that there are an odd number of single-quotes on your commmand line, so your shell is waiting for you to finish the input. Sorry, dunno much about debian packages. I have heard that the debian packagers broke ruby up into a number of packages that all have to be installed (but this may be an ugly rumor, or I may just be wrong). I usually just build from source on linux, and only bother with prepackaged ruby on windows.
mmm.. i use apt get mainly because it''s easy to keep track of all of the upgrades and stuff :P mmm.. btw, i typed in /usr/bin/ruby1.8 -e ''p $LOAD_PATH'' (correctly this time), and it outputted this: ["/usr/local/lib/site_ruby/1.8", "/usr/local/lib/site_ruby/1.8/i386-linux", "/usr/local/lib/site_ruby", "/usr/lib/ruby/1.8", "/usr/lib/ruby/1.8/i386-linux", "."] i''ll try to compile ruby from source, see if it works :| -- www.programer.name - my own personal blog : )
ok, i have just compiled and installed ruby, though, when i try installing fxruby, it gave me an error saying /usr/bin/ruby file or dir not found, prob just a hang over from the debian installation.. i now have the file:/usr/local/lib/ruby/1.8 dir and everything is in there.. how do i set the path to that folder and overwrite the original one? thanks alot :D -- www.programer.name - my own personal blog : )
Jason Wang wrote:> mmm.. i use apt get mainly because it''s easy to keep track of all of > the upgrades and stuff :P mmm.. btw, i typed in /usr/bin/ruby1.8 -e ''p > $LOAD_PATH'' (correctly this time), and it outputted this: > ["/usr/local/lib/site_ruby/1.8", > "/usr/local/lib/site_ruby/1.8/i386-linux", "/usr/local/lib/site_ruby", > "/usr/lib/ruby/1.8", "/usr/lib/ruby/1.8/i386-linux", "."]Is mkmf.rb in any of those dirs? It should probably be in /usr/lib/ruby/1.8.
mmm.. read my later e-mails.. i installed ruby via it''s source, but then, how would i point to the new ruby installation, and not the older one? thanks alot :D btw, the source installation have hte same dir and same file as you do :D -- www.programer.name - my own personal blog : )