Problems installing and running IOWA

Hello

I’m trying install IOWA on my computer, but I’m not successfull.
I use the latest ruby grabbed from cvs. This is compilled with
$ autoconf
$ ./configure --prefix=$HOME
$ make
$ make test
$ make install

As you can see, I install ruby to my home to don’t touch the system.

Next I compiled IOWA
$ make
$ su root make install
$ ruby install.rb

Then I’ve make corrections to /etc/init.d/apache. I inserted
/home/radek/bin directory just after /bin in PATH just be sure.

Edit /etc/apache/httpd.conf
LoadModule action_module /usr/lib/apache/1.3/mod_actions.so
LoadModule iowa_module /usr/lib/apache/1.3/mod_iowa.so
Action iowa /cgi-bin/iowa.cgi
<Location /iowa>
SetHandler iowa
Order allow,deny
Allow from all

I also handly copied the iowa.cgi to /usr/lib/cgi-bin directory and
modified first line to use my ruby
#!/home/radek/bin/ruby

After restarting apache
$ su root /etc/init.d/apache restart
and running iowa in guestbook directory in exmaples
$ ruby guestbook.rb

I take a look at the web page
$ lynx -mime_header http://loclahost:8080/iowa/guestbook

And on the console where I run the guestbook.rb I see this
/home/radek/lib/ruby/site_ruby/iowa/BindingsParser.rb:38: warning: parenthesize argument(s) for future version
listening on /tmp/iowa_guestbook
radek@kvark:~/source/iowa-0.15/examples/guestbook$ incompatible marshal file format (can’t be read)
format version 4.8 required; 15.47 given

I’m confused with this error. Looking in the source of latest cvs
version I see that marshal format version is 4.8, the ruby expect
this. But from where is the version 15.47.

Can anoyne help me?

···


Radek Hnilica

No matter how far down the wrong road you’ve gone, turn back.
Turkish proverb

Radek Hnilica wrote:

···

radek@kvark:~/source/iowa-0.15/examples/guestbook$ incompatible marshal file format (can’t be read)
format version 4.8 required; 15.47 given

I’m confused with this error. Looking in the source of latest cvs
version I see that marshal format version is 4.8, the ruby expect
this. But from where is the version 15.47.

Can anoyne help me?


Radek Hnilica

No matter how far down the wrong road you’ve gone, turn back.
Turkish proverb


([ Kent Dahl ]/)_ ~ [ http://www.stud.ntnu.no/~kentda/ ]/~
))_student
/(( _d L b_/ NTNU - graduate engineering - 5. year )
( __õ|õ// ) )Industrial economics and technological management(
_
/ö____/ (_engineering.discipline=Computer::Technology)

Radek Hnilica Radek@Hnilica.CZ writes:

radek@kvark:~/source/iowa-0.15/examples/guestbook$ incompatible marshal file format (can’t be read)
format version 4.8 required; 15.47 given

I’m confused with this error. Looking in the source of latest cvs
version I see that marshal format version is 4.8, the ruby expect
this. But from where is the version 15.47.

The latest CVS version of Iowa is broken. Check out the 0.15 snapshot

  • it should work fine.

Dave

Radek Hnilica wrote:

radek@kvark:~/source/iowa-0.15/examples/guestbook$

Are you using CVS of IOWA? ^^^^
Mixing and matching 0.15 and the CVS main trunk can’t be helpful :slight_smile:

incompatible marshal file format (can’t be read)
format version 4.8 required; 15.47 given

I have similar problems, and have gone back to using the 0.15 version of
IOWA, for the time being.

I posted the question to the iowa-talk list:
http://sourceforge.net/mailarchive/forum.php?forum_id=7681

No definitive answer yet.

I’m confused with this error. Looking in the source of latest cvs
version I see that marshal format version is 4.8, the ruby expect
this. But from where is the version 15.47.

I’m beginning to wonder if the mod_iowa.so doesn’t use Marshal yet, so
the unmarshalled data it is sending to the shared socket is by Ruby
tried to be treated as marshallable data (and then some arbitrary data
falls into the version field). There is nothing in the CVS log for
mod_iowa.c file about adding Marshal, and the Marshal change is rather
recent. Looks like Kirk is in the middle of something, perhaps?

[kentda@v052a iowa]$ cvs diff -r1.3 -r1.4 iowa.rb|grep -i marshal

  r = Marshal.load(m)
  m = Marshal.dump(r)

[kentda@v052a iowa]$ cvs log iowa.rb

revision 1.4
date: 2002/09/24 02:35:12; author: khaines; state: Exp; lines: +19
-43
Changes to utilize Iowa::Request

···


([ Kent Dahl ]/)_ ~ [ http://www.stud.ntnu.no/~kentda/ ]/~
))_student
/(( _d L b_/ NTNU - graduate engineering - 5. year )
( __õ|õ// ) )Industrial economics and technological management(
_
/ö____/ (_engineering.discipline=Computer::Technology)

Radek Hnilica said:

Hello

I’m trying install IOWA on my computer, but I’m not successfull.
I use the latest ruby grabbed from cvs. This is compilled with
Can anoyne help me?

Nutshell: Grab the 0.15 version of Iowa and install that. I have a
couple of errors that I am trying to get addressed in the current version
of IOWA that is on the CVS head.
http://prdownloads.sourceforge.net/iowa/iowa-0.15.tar.gz?download

If you have any problems with 0.15, email me and I will help you through
them.

Kirk Haines

But from where is the version 15.47.

I’m beginning to wonder if the mod_iowa.so doesn’t use Marshal yet,
so the unmarshalled data it is sending to the shared socket is by Ruby
tried to be treated as marshallable data (and then some arbitrary data
falls into the version field). There is nothing in the CVS log for
mod_iowa.c file about adding Marshal, and the Marshal change is rather
recent. Looks like Kirk is in the middle of something, perhaps?

[kentda@v052a iowa]$ cvs diff -r1.3 -r1.4 iowa.rb|grep -i marshal

  r = Marshal.load(m)
  m = Marshal.dump(r)

[kentda@v052a iowa]$ cvs log iowa.rb

revision 1.4
date: 2002/09/24 02:35:12; author: khaines; state: Exp; lines: +19
-43
Changes to utilize Iowa::Request

Bingo! mod_iowa is thus far untouched, so it doesn’t know about
Iowa::Request. Iowa::Request is basically a marshallable object that
carries an Apache::Request-like payload to/from the Iowa app, allowing the
Iowa app full access to HTTP headers, CGI parameters, etc…
There are also a couple other issues with what is on the CVS head that I
need to fix. Basically, I screwed up and should have put all of this
stuff on a branch instead of the head, but didn’t, so the CVS head is in
limbo until I get everything fixed.

Thanks,

Kirk Haines

Thanks for help.
I simply recompile version 0.15 and put it instead of cvs version.
The error it now raises is:

The requested URL /abHZV03C8qSSk/a/1.3 was not found on this server

it seems that something is wrong with generated url. Ma be it have to
do with following errors on the console:

/home/radek/lib/ruby/site_ruby/iowa/BindingsParser.rb:26: warning: parenthesize argument(s) for future version
listening on /tmp/iowa_guestbook
radek@kvark:~/source/iowa-0.15/examples/guestbook$ /home/radek/lib/ruby/site_ruby/iowa/Application.rb:91: warning: string pattern instead of regexp; metacharacters no longer effective
/home/radek/lib/ruby/site_ruby/iowa/Application.rb:91: warning: string pattern instead of regexp; metacharacters no longer effective

···


Radek Hnilica

No matter how far down the wrong road you’ve gone, turn back.
Turkish proverb