Ruby on Rails Monday, August 4, 2014


Dear Matt:

I have tried fiddle, but couldn't make it to import functions in .dylib (Fortran dll generated by intel
fortran compiler) that I could use DL to import successfully before.  Any suggestions?

Thanks!
Liz

On Tuesday, July 15, 2014 3:55:54 PM UTC-4, Liz Huang wrote:


Thanks! I will check fiddle out and post if I have any questions. It can call .dylib?

Liz

On Tuesday, July 15, 2014 2:46:35 PM UTC-4, Matt Jones wrote:


On Monday, 14 July 2014 15:49:51 UTC-4, Liz Huang wrote:


I don't see anything else though, let me copy the whole page:

LoadError in SamplesizeController#compute

cannot load such file -- dl

Extracted source (around line #14):
12  13  14  15  16  17            
def compute
require 'dl'
require 'pathname'
# if ( session[:sigma_sq] <= 0.0 )

Rails.root: /Library/WebServer/smart

Application Trace | Framework Trace | Full Trace
app/controllers/samplesize_controller.rb:14:in `compute'
This error occurred while loading the following files:     dl


DL was deprecated in Ruby 2.0 and removed in 2.1 in favor of Fiddle. Fiddle docs:


--Matt Jones 

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/ab4e65ee-7b1c-421f-a978-4d7e4f3aa00f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment