Ruby -- Mack Framework

Hi All,

Mack is a framework using ruby. I followed this link to work with this
framework.

http://www.mackframework.com/2008/04/18/046-the-obligatory-blog-demo-take-2/

I installed Following gems

PATH> gem install mack
Need to update 15 gems from http://gems.rubyforge.org

complete
Install required dependency mack_ruby_core_extensions? [Yn] y
Install required dependency application_configuration? [Yn] y
Install required dependency cachetastic? [Yn] y
Install required dependency thin? [Yn] y
Select which gem to install for your platform (i386-mswin32)

  1. thin 0.8.0 (i386-mswin32)
  2. thin 0.8.0 (ruby)
  3. Skip this gem
  4. Cancel installation

1
Install required dependency eventmachine? [Yn] y
Select which gem to install for your platform (i386-mswin32)

  1. eventmachine 0.8.1 (i386-mswin32)
  2. eventmachine 0.8.1 (ruby)
  3. Skip this gem
  4. Cancel installation

1
Install required dependency crypt? [Yn] y
Successfully installed mack-0.4.6
Successfully installed mack_ruby_core_extensions-0.1.5
Successfully installed application_configuration-1.2.2
Successfully installed cachetastic-1.4.2
Successfully installed thin-0.8.0-i386-mswin32
Successfully installed eventmachine-0.8.1-i386-mswin32
Successfully installed crypt-1.1.4

AND also installed these two…

gem install memcache-client

gem install datamapper

Finally i un the server

rake server
it says need to install do_sqlite3

I tried to install do_sqlite3 --> gem install do_sqlite3

But i got this error

C:\New Folder\trails\blog2>gem install do_sqlite3
Building native extensions. This could take a while…
ERROR: While executing gem … (Gem::Installer::ExtensionBuildError)
ERROR: Failed to build gem native extension.

ruby extconf.rb install do_sqlite3
extconf.rb:1:in ``’: No such file or directory - uname -sr
(Errno::ENOENT)
from extconf.rb:1

Gem files will remain installed in
c:/ruby/lib/ruby/gems/1.8/gems/do_sqlite3-0.2
.5 for inspection.
Results logged to
c:/ruby/lib/ruby/gems/1.8/gems/do_sqlite3-0.2.5/ext/gem_make.o
ut.

Please Help to me continue to run the Application

Regards,
P.Raveendran
RailsFactory
[email protected]

Does the system have sqlite3 installed?
If not it probably needs it. Probably also needs a compiler to build
the native gems.

RF

Raveendran you can also use MySQL or PostgreSQL. They’re both supported
by DataMapper, and are recommended over SQLite.

I would also love to know your experiences with Mack on Windows. I
developed it on OS X and haven’t done a lot of Windows testing yet.

-Mark
http://www.mackframework.com

On Apr 23, 7:22 am, Raveendran J. [email protected] wrote:

C:\New Folder\trails\blog2>gem install do_sqlite3
Building native extensions. This could take a while…
ERROR: While executing gem … (Gem::Installer::ExtensionBuildError)
ERROR: Failed to build gem native extension.

ruby extconf.rb install do_sqlite3
extconf.rb:1:in ``’: No such file or directory - uname -sr
(Errno::ENOENT)
from extconf.rb:1

This looks like the do_sqlite3 gem depends on the “uname” command to
identify what type of system it’s running on.
Unfortunately that doesn’t work on Windows at all. Your best bet is to
either track down the person who created
that gem and see if he’ll fix it, download the source and fix the gem
yourself, or do what Mark B. suggested and
use one of the other supported databases. You could “fake it” by
creating a script or executable named ‘uname’ or
maybe even an alias, but if it takes actions based on the output
generated by uname it’s quite likely it’ll
contain other dependencies on Unix/Linux.

Vidar

On Apr 25, 11:53 am, Vidar H. [email protected] wrote:

    from extconf.rb:1

generated by uname it’s quite likely it’ll
contain other dependencies on Unix/Linux.

There’s work being done for fixing DO and get proper Windows support.

That will be part of 0.9 release of DataMapper, nothing more to say
for now than read my blog :slight_smile:

http://blog.mmediasys.com/2008/04/24/contributions-speedup-and-less-quirks-for-us/

Regards,

Hi All,

I am waiting for the new release of data mapper gem…

Hi Mark,

I have some experience in Rails. I want to catch all ruby gem frameworks
like waves,mack etc… Thats why i installed in my windows pc.I am using
mysql. Is it possible to solve this issue using mysql ?. I am working as
Tester in RailsFactory.I am using Watir,selenium for test the rails
application. Is it possible to test the Mack application with these
testing tools?. I think it is possible.Anyway, I want to work with mack
environment. Nice meeting(posting) Mark…

Hi Raveendran, you definitely can use MySQL with Mack. I would recommend
it over SQLite3, definitely. SQLite3 is great for getting started and
simple development, but you’ll definitely want to move to something a
bit more production ready like MySQL or PostgreSQL.

As far as using watir and selenium, those are tools designed to drive a
web app, they should work with any framework. You should be all set.

Like always, anything I can do to make Mack better.
-Mark
http://www.mackframework.com

Raveendran J. wrote:

Hi All,

I am waiting for the new release of data mapper gem…

Hi Mark,

I have some experience in Rails. I want to catch all ruby gem frameworks
like waves,mack etc… Thats why i installed in my windows pc.I am using
mysql. Is it possible to solve this issue using mysql ?. I am working as
Tester in RailsFactory.I am using Watir,selenium for test the rails
application. Is it possible to test the Mack application with these
testing tools?. I think it is possible.Anyway, I want to work with mack
environment. Nice meeting(posting) Mark…

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs