Hi Frederick,
I actually was able to install both ultraviolet and oniguruma with the
following commands :
gem install oniguruma --platform=mingw32
gem install ultraviolet --platform=mingw32
So know when I run gem list --local I see
*** LOCAL GEMS ***
actionmailer (2.3.5)
actionpack (2.3.5)
activerecord (2.3.5)
activeresource (2.3.5)
activesupport (2.3.5)
git (1.2.5)
hpricot (0.8.2)
mysql (2.8.1)
oniguruma (1.1.0)
plist (3.1.0)
rack (1.0.1)
rails (2.3.5)
rake (0.8.7)
textpow (0.10.1)
ultraviolet (0.10.2)
But know I'm having a different problem running script/plugin install
git://github.com/michaeledgar/harsh.git I always get Plugin not found:
["git://github.com/michaeledgar/harsh.git"]
I get the same error with all the plugins I try to install, I also
tried replacing git with http:// and adding a trailing slash at the
end but with the same result.
I also tried downloading the plugin manually and copying it to the
vendor folder, but is not making the correct replacement and when I
try to run the rake tasks from the plugin I get the following error
output :
rake harsh:theme:list
(in O:/Personal/2010/allanmacgregor.com/RubyMineProjects/Snippy)
C:/Ruby19/lib/ruby/gems/1.9.1/gems/oniguruma-1.1.0/lib/oniguruma.rb:
1:in `requir
e': 126: The specified module could not be found. - C:/Ruby19/lib/
ruby/gems/1.
9.1/gems/oniguruma-1.1.0-x86-mswin32/win/oregexp.so (LoadError)
from C:/Ruby19/lib/ruby/gems/1.9.1/gems/oniguruma-1.1.0/lib/
oniguruma.rb
:1:in `<top (required)>'
from C:/Ruby19/lib/ruby/gems/1.9.1/gems/textpow-0.10.1/lib/
textpow.rb:2:
in `require'
from C:/Ruby19/lib/ruby/gems/1.9.1/gems/textpow-0.10.1/lib/
textpow.rb:2:
in `<top (required)>'
from C:/Ruby19/lib/ruby/gems/1.9.1/gems/ultraviolet-0.10.2/lib/
uv.rb:2:i
n `require'
from C:/Ruby19/lib/ruby/gems/1.9.1/gems/ultraviolet-0.10.2/lib/
uv.rb:2:i
n `<top (required)>'
from C:/Ruby19/lib/ruby/gems/1.9.1/gems/ultraviolet-0.10.2/bin/
uv:8:in `
require'
from C:/Ruby19/lib/ruby/gems/1.9.1/gems/ultraviolet-0.10.2/bin/
uv:8:in `
rescue in <top (required)>'
from C:/Ruby19/lib/ruby/gems/1.9.1/gems/ultraviolet-0.10.2/bin/
uv:3:in `
<top (required)>'
from C:/Ruby19/bin/uv:19:in `load'
from C:/Ruby19/bin/uv:19:in `<main>'
Any help getting this solved is highly appreciated
Cheers!
On Feb 27, 10:19 am, Frederick Cheung <[email protected]>
wrote:
> On Feb 27, 3:02 am, amacgregor <[email protected]> wrote:
>
> > Hi I have been tying to install the followings gems in order to add
> > code syntax highlighting to my application:
>
> Do you have the correct compiler toolchain installed (from the log
> looks like minggw32) ?
> It also looks like someone forked ultraviolet and that the fork
> (http://github.com/spox/ultraviolet) is ruby 1.9 compatible which
> rather implies that the original isn't. It doesn't look like the fork
> has any native code dependencies (onigurama is a regular express
> library which has become the standard ruby one in ruby 1.9)
>
> Fred
>
> > -Oniguruma
> > -Ultraviolet
> > -Harsh
>
> > Unfortunately I have been running into the the following errors when
> > running "gem install oniguruma ultraviolet"
>
> > Building native extensions. This could take a while...
> > ERROR: Error installing oniguruma:
> > ERROR: Failed to build gem native extension.
>
> > C:/Ruby19/bin/ruby.exe extconf.rb
> > checking for main() in -lonig... *** extconf.rb failed ***
> > Could not create Makefile due to some reason, probably lack of
> > necessary libraries and/or headers. Check the mkmf.log file for more
> > details. You may need configuration options.
>
> > Provided configuration options:
> > --with-opt-dir
> > --without-opt-dir
> > --with-opt-include
> > --without-opt-include=${opt-dir}/include
> > --with-opt-lib
> > --without-opt-lib=${opt-dir}/lib
> > --with-make-prog
> > --without-make-prog
> > --srcdir=.
> > --curdir
> > --ruby=C:/Ruby19/bin/ruby
> > --with-oniglib
> > --without-oniglib
> > C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:364:in `try_do': The complier failed
> > to generat
> > e an executable file. (RuntimeError)
> > You have to install development tools first.
> > from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:417:in `try_link0'
> > from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:421:in `try_link'
> > from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:529:in `try_func'
> > from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:725:in `block in
> > have_library'
> > from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:670:in `block in
> > checking_for'
> > from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:276:in `block (2 levels)
> > in postpo
> > ne'
> > from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:250:in `open'
> > from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:276:in `block in
> > postpone'
> > from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:250:in `open'
> > from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:272:in `postpone'
> > from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:669:in `checking_for'
> > from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:720:in `have_library'
> > from extconf.rb:2:in `<main>'
>
> > Gem files will remain installed in C:/Ruby19/lib/ruby/gems/1.9.1/gems/
> > oniguruma-
> > 1.1.0 for inspection.
> > Results logged to C:/Ruby19/lib/ruby/gems/1.9.1/gems/oniguruma-1.1.0/
> > ext/gem_mak
> > e.out
> > Building native extensions. This could take a while...
> > ERROR: Error installing ultraviolet:
> > ERROR: Failed to build gem native extension.
>
> > C:/Ruby19/bin/ruby.exe extconf.rb
> > checking for main() in -lonig... *** extconf.rb failed ***
> > Could not create Makefile due to some reason, probably lack of
> > necessary libraries and/or headers. Check the mkmf.log file for more
> > details. You may need configuration options.
>
> > Provided configuration options:
> > --with-opt-dir
> > --without-opt-dir
> > --with-opt-include
> > --without-opt-include=${opt-dir}/include
> > --with-opt-lib
> > --without-opt-lib=${opt-dir}/lib
> > --with-make-prog
> > --without-make-prog
> > --srcdir=.
> > --curdir
> > --ruby=C:/Ruby19/bin/ruby
> > --with-oniglib
> > --without-oniglib
> > C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:364:in `try_do': The complier failed
> > to generat
> > e an executable file. (RuntimeError)
> > You have to install development tools first.
> > from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:417:in `try_link0'
> > from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:421:in `try_link'
> > from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:529:in `try_func'
> > from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:725:in `block in
> > have_library'
> > from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:670:in `block in
> > checking_for'
> > from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:276:in `block (2 levels)
> > in postpo
> > ne'
> > from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:250:in `open'
> > from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:276:in `block in
> > postpone'
> > from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:250:in `open'
> > from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:272:in `postpone'
> > from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:669:in `checking_for'
> > from C:/Ruby19/lib/ruby/1.9.1/mkmf.rb:720:in `have_library'
> > from extconf.rb:2:in `<main>'
>
> > Gem files will remain installed in C:/Ruby19/lib/ruby/gems/1.9.1/gems/
> > oniguruma-
> > 1.1.0 for inspection.
> > Results logged to C:/Ruby19/lib/ruby/gems/1.9.1/gems/oniguruma-1.1.0/
> > ext/gem_mak
> > e.out
>
> > I'm using windows 7 with
> > ruby 1.9.1p378 (2010-01-10 revision 26273) [i386-mingw32]
>
> > actionmailer (2.3.5)
> > actionpack (2.3.5)
> > activerecord (2.3.5)
> > activeresource (2.3.5)
> > activesupport (2.3.5)
> > mysql (2.8.1)
> > rack (1.0.1)
> > rails (2.3.5)
> > rake (0.8.7)
>
> > Any help that anyone can give me to resolve this issue is highly
> > appreciated.
>
> > Cheers!
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.