Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
How to compile?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post will appear after it is approved by moderators
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Rui Lopes  
View profile  
 More options May 17 2009, 3:32 pm
From: Rui Lopes <r...@ruilopes.com>
Date: Sun, 17 May 2009 12:32:51 -0700 (PDT)
Local: Sun, May 17 2009 3:32 pm
Subject: How to compile?
Hi,

I'm a bit puzzled on how to compile ebb under ruby 1.9. I've tried
with:

    git clone git://github.com/ry/ebb.git
    cd ebb
    rake-1.9

It build libev, ebb_ffi.so but didn't install anything.  So, I next
tried:

    rake-1.9 gem
    gem-1.9 install pkg/ebb-0.3.3.gem

The gem was build and all, but it only installed the C source code;
no .so file and no .rb files.  Isn't that odd?

Next, I uninstalled the gem, and tried to install using the normal:

    gem-1.9 install ebb

Which installed ebb 0.3.2, but oddly, it only installed C source code,
and again, no .so file and no .rb files.

I'm kinda lost... how can I build ebb from source?

TIA.

Best regards,
Rui Lopes


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dharmarth  
View profile  
 More options Jun 2 2009, 4:40 am
From: Dharmarth <dharmarth.s...@impetus.co.in>
Date: Tue, 2 Jun 2009 01:40:31 -0700 (PDT)
Local: Tues, Jun 2 2009 4:40 am
Subject: Re: How to compile?
Ry,
I made the following changes to get ebb compiling on Ruby 1.9.
Specifically, the version I have running at my end is version 1.9.1p0
(2009-01-30 revision 21907) [i686-linux].

     1.  I have added conditional include for TRAP_BEG and TRAP_END
macros (that were used to save errno) and “rubysig.h”. These have been
marked obsolete in version 1.9 and are not required in it.

     2. The gem was getting built successfully but the .rb files were
missing in it. I have included .rb files in the gem specification.

After successful installation, I got another error while accessing an
application deployed on ebb.

/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.2/lib/
active_support/dependencies.rb:105:in `rescue in const_missing':
uninitialized constant Rack::Adapter::Rails::CGIWrapper::Thin
(NameError)
from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-2.3.2/lib/
active_support/dependencies.rb:94:in `const_missing'
from /usr/local/lib/ruby/gems/1.9.1/gems/ebb-0.3.3/lib/rack/adapter/
rails.rb:123:in `header'
from /usr/local/lib/ruby/gems/1.9.1/gems/actionpack-2.3.2/lib/
action_controller/cgi_process.rb:55:in `dispatch_cgi'
from /usr/local/lib/ruby/gems/1.9.1/gems/actionpack-2.3.2/lib/
action_controller/dispatcher.rb:102:in `dispatch_cgi'
from /usr/local/lib/ruby/gems/1.9.1/gems/actionpack-2.3.2/lib/
action_controller/dispatcher.rb:28:in `dispatch'
from /usr/local/lib/ruby/gems/1.9.1/gems/ebb-0.3.3/lib/rack/adapter/
rails.rb:57:in `serve_rails'
from /usr/local/lib/ruby/gems/1.9.1/gems/ebb-0.3.3/lib/rack/adapter/
rails.rb:77:in `call'
from /usr/local/lib/ruby/gems/1.9.1/gems/ebb-0.3.3/lib/ebb.rb:88:in
`block in process'
from /usr/local/lib/ruby/gems/1.9.1/gems/ebb-0.3.3/lib/ebb.rb:87:in
`catch'
from /usr/local/lib/ruby/gems/1.9.1/gems/ebb-0.3.3/lib/ebb.rb:87:in
`process'
from /usr/local/lib/ruby/gems/1.9.1/gems/ebb-0.3.3/lib/ebb.rb:75:in
`start_server'
from /usr/local/lib/ruby/gems/1.9.1/gems/ebb-0.3.3/lib/ebb/runner.rb:
120:in `run'
from /usr/local/lib/ruby/gems/1.9.1/gems/ebb-0.3.3/bin/ebb_rails:5:in
`<top (required)>'
from /usr/local/bin/ebb_rails:19:in `load'
from /usr/local/bin/ebb_rails:19:in `<main>'

This looked like an issue of using "Thin.ruby_18?" (Line 123 of rack/
adapter/rails.rb), used to check the ruby version. Replacing this with
"RUBY_VERSION =~ /^1\.8/" resolved out the issue.

After making all the above changes, ebb now runs successfully on both
Ruby 1.8 and 1.9. I have committed all the changes in my fork and sent
you a pull request. Please do have a look on it.

http://github.com/dharmarth/ebb/tree/master

Rui,
You can refer my fork till these changes appear in the main
repository.

Thanks,
Dharmarth
Impetus Technologies

On May 18, 12:32 am, Rui Lopes <r...@ruilopes.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ry Dahl  
View profile  
 More options Jun 2 2009, 5:05 am
From: Ry Dahl <coldredle...@gmail.com>
Date: Tue, 2 Jun 2009 02:05:00 -0700 (PDT)
Subject: Re: How to compile?
Hi Dharmarth,

Looks good. One issue:

In lib/ebb.rb, you made the change

-  autoload :FFI, LIBDIR + '/../ext/ebb_ffi'
+  autoload :FFI, LIBDIR + '/ebb_ffi'

Is there a reason for this? On my system, at least, I cannot run ebb
from its build directory.

ry


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dharmarth  
View profile  
 More options Jun 2 2009, 11:47 am
From: Dharmarth <dharmarth.s...@impetus.co.in>
Date: Tue, 2 Jun 2009 08:47:49 -0700 (PDT)
Local: Tues, Jun 2 2009 11:47 am
Subject: Re: How to compile?
Ry,

Sorry, I forgot to mention about this change.

-    autoload :FFI, LIBDIR + '/../ext/ebb_ffi'

On my Ruby 1.9 setup, the execution just used to get stuck at this
line. (Strangely, no exception was thrown either). To get it to work,
I just tried replacing it and did not get the time to give it a deep
thought and analyze the root cause.

To get it working from the build directory as well, and avoid that
(environmental?) issue in Ruby 1.9, I can guess we can better use the
following in place of the above statement. (I did a quick check and it
seems to be working fine)

+   autoload :FFI, File.expand_path(LIBDIR + '/../ext/ebb_ffi')

Thanks,
Dharmarth
Impetus Technologies

On Jun 2, 2:05 pm, Ry Dahl <coldredle...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
ry  
View profile  
 More options Jun 3 2009, 6:58 pm
From: ry <coldredle...@gmail.com>
Date: Wed, 3 Jun 2009 15:58:06 -0700 (PDT)
Local: Wed, Jun 3 2009 6:58 pm
Subject: Re: How to compile?
Thanks. Your changes are pulling into my branch.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »