Fresh ruby 187, rails 3.0.0 and typo 6.0.3 install does not work

Hello,

I have been trying to install Typo 6.0.3 with fresh box after installing
Ruby187 and Rails 3.0.3.
Bundle install command runs very smoothly.

However, when I try to create database with command rake db:create.
Application always shows error in window indicating application failed
to
start because msvcrt-ruby191.dll was not found. Reinstalling may fix
this
problem. (I am using windows). Following log is displayed.

C:\typo-6.0.3>rake db:create
(in C:/typo-6.0.3)
rake aborted!
no such file to load – 1.8/bluecloth_ext
c:/ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2383:in
`raw_load_rakefile’
(See full trace by running task with --trace)

It seems that one or more gems being used with application is expecting
ruby191 dll file mentioned above.

Any help would be highly appreciated.

regards,
Jaymin

Hi Jaymin,

It seems rake tries to use ruby 1.9.1 instead of 1.8.7. Can you try
running the following:

bundle exec rake db:create

This should force the use of the correct ruby and gems.

If that doesn’t work, can you check where each ruby version is in your
path?

Regards,
Matijs

Matijs van Zuijlen <matijs matijs.net> writes:

If that doesn’t work, can you check where each ruby version is in your path?

`raw_load_rakefile’
(See full trace by running task with --trace)

It seems that one or more gems being used with application is expecting
ruby191 dll file mentioned above.

Any help would be highly appreciated.

regards,
Jaymin

Hi Matijs,

Thanks for your reply. I have tried it and it does not work. Further, I
have
Ruby 187 in path and confirmed it too.

Also, I did some search on bluecloth_ext error mentioned below and found
that
this is an known issues. I have tried to fix it with suggested fix but
it did
not worked and system continued to give below error.

ref#
http://groups.google.com/group/rubyinstaller/browse_thread/thread/59f3812381a195b5

regards,
Jaymin

Jaymin Shah wrote in post #979982:

Matijs van Zuijlen <matijs matijs.net> writes:

If that doesn’t work, can you check where each ruby version is in your path?

`raw_load_rakefile’
(See full trace by running task with --trace)

It seems that one or more gems being used with application is expecting
ruby191 dll file mentioned above.

Any help would be highly appreciated.

regards,
Jaymin

Hi Matijs,

Thanks for your reply. I have tried it and it does not work. Further, I
have
Ruby 187 in path and confirmed it too.

Also, I did some search on bluecloth_ext error mentioned below and found
that
this is an known issues. I have tried to fix it with suggested fix but
it did
not worked and system continued to give below error.

ref#

http://groups.google.com/group/rubyinstaller/browse_thread/thread/59f3812381a195b5

regards,
Jaymin

I got the same problem. Install Ruby 187 on Windows 7 env.
When I run Ruby I get a dialog box with the following error
“application aborted error finding ruby…191.dll …”

Regards
Moshe

On 02/08/2011 02:17 AM, Moshe Suberri wrote:

http://groups.google.com/group/rubyinstaller/browse_thread/thread/59f3812381a195b5

I got the same problem. Install Ruby 187 on Windows 7 env.
When I run Ruby I get a dialog box with the following error
“application aborted error finding ruby…191.dll …”

Moshe, Jaymin,

Have you tried uninstalling the bluecloth gem before using the fix
suggested
above? Did you install the Development Kit before using the fix? I think
it may
be needed.

Thanks for your reply.

I have ensured that there no gem install for bluecloth for any version.
I
have also verified that there are no files for bluecloth in cache folder
too.

I had downloaded devkit from Downloads and
followed
the instruction per
Development Kit · oneclick/rubyinstaller Wiki · GitHub. I had
also
ensured that devkit is installed properly by following smoke test.

I had then tried installing bluecloth (v2.0.10). It had failed with
following error: (I had also tried removing 2.0.10 version from gem and
cache folder and installing specific version 2.0.5, it got installed
without
any error but when I tried to execute db:create or db:migrate - it
throws
the error we discussed earlier email). (I had tried on different box as
well
ensuring that it has fresh install of Ruby 187 with devkit)

C:\test\typo>gem install bluecloth --platform=ruby

Temporarily enhancing PATH to include DevKit…

Building native extensions. This could take a while…

ERROR: Error installing bluecloth:

    ERROR: Failed to build gem native extension.

c:/Ruby187/bin/ruby.exe extconf.rb

checking for srand()… yes

checking for random()… no

checking for rand()… yes

checking for bzero() in string.h,strings.h… no

checking for strcasecmp()… yes

checking for strncasecmp()… yes

checking for mkdio.h… yes

checking for ruby/encoding.h… no

creating extconf.h

creating Makefile

make

gcc -I. -I. -Ic:/Ruby187/lib/ruby/1.8/i386-mingw32 -I.
-DRUBY_EXTCONF_H="extcon

f.h" -DVERSION="2.0.4" -g -O2 -DFD_SETSIZE=256 -I. -Wall -c
bluecloth.c

In file included from
c:\rubydevkit\mingw\bin../lib/gcc/mingw32/4.5.1/…/…/…/

…/include/windows.h:48:0,

             from

c:\rubydevkit\mingw\bin../lib/gcc/mingw32/4.5.1/…/…/…/

…/include/winsock2.h:22,

             from 

c:/Ruby187/lib/ruby/1.8/i386-mingw32/win32/win32.h:27,

             from 

c:/Ruby187/lib/ruby/1.8/i386-mingw32/defines.h:186,

             from c:/Ruby187/lib/ruby/1.8/i386-mingw32/ruby.h:37,

             from bluecloth.h:14,

             from bluecloth.c:25:

c:\rubydevkit\mingw\bin../lib/gcc/mingw32/4.5.1/…/…/…/…/include/windef.h:22

9:23: error: duplicate ‘unsigned’

c:\rubydevkit\mingw\bin../lib/gcc/mingw32/4.5.1/…/…/…/…/include/windef.h:23

8:23: error: duplicate ‘unsigned’

c:\rubydevkit\mingw\bin../lib/gcc/mingw32/4.5.1/…/…/…/…/include/windef.h:23

8:23: error: two or more data types in declaration specifiers

c:\rubydevkit\mingw\bin../lib/gcc/mingw32/4.5.1/…/…/…/…/include/windef.h:24

1:24: error: duplicate ‘unsigned’

bluecloth.c: In function ‘bluecloth_initialize’:

bluecloth.c:190:9: warning: unused variable ‘utf8text’

make: *** [bluecloth.o] Error 1

Gem files will remain installed in
c:/Ruby187/lib/ruby/gems/1.8/gems/bluecloth-2

.0.10 for inspection.

Results logged to
c:/Ruby187/lib/ruby/gems/1.8/gems/bluecloth-2.0.10/ext/gem_mak

e.out

C:\test\typo>

Hi Matijs,

This seem to be problem with Bluecloth gem. I have been trying to get
some
help on google group. Please find below link for your ready reference.

http://groups.google.com/group/rubyinstaller/browse_thread/thread/732ba200b67c60ab?hl=en

hope to get resolution soon to move to next sql issue.

regards,
Jaymin