lsegal/barracuda — Issue #7: Issue with Rakefile or Makefile
Author: emacadie
Created: 2011-11-03 02:58:46+00:00
State: open

I am a Ruby beginner and I am trying to get this to work on Ubuntu. I downloaded the Intel OpenCL SDK, which put a bunch of files in /usr/lib64.

When I run rake, here is what I get:
rake/gempackagetask is deprecated. Use rubygems/package_task instead
cd ext && ruby extconf.rb
checking for CL/cl.h... yes
checking for main() in -lOpenCL... yes
checking for libOpenCL() in -llibOpenCL... no
creating Makefile
cd ext && make
gcc -shared -o barracuda.so barracuda.o -L. -L/home/ericm/.rvm/rubies/ruby-1.9.2-p290/lib -Wl,-R/home/ericm/.rvm/rubies/ruby-1.9.2-p290/lib -L. -rdynamic -Wl,-export-dynamic -Wl,-R -Wl,/home/ericm/.rvm/rubies/ruby-1.9.2-p290/lib -L/home/ericm/.rvm/rubies/ruby-1.9.2-p290/lib -lruby -lOpenCL -lpthread -lrt -ldl -lcrypt -lm -lc
:29:in `require': libOpenCL.so: cannot open shared object file: No such file or directory - /home/ericm/tmp/rubyStuff/barracuda/ext/barracuda.so (LoadError)
from :29:in `require'
from /home/ericm/tmp/rubyStuff/barracuda/test/test_program.rb:4:in `'
from :29:in `require'
from :29:in `require'
from /home/ericm/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/rake_test_loader.rb:10:in `block (2 levels) in

'
from /home/ericm/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/rake_test_loader.rb:9:in `each'
from /home/ericm/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/rake_test_loader.rb:9:in `block in

'
from /home/ericm/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/rake_test_loader.rb:4:in `select'
from /home/ericm/.rvm/gems/ruby-1.9.2-p290/gems/rake-0.9.2.2/lib/rake/rake_test_loader.rb:4:in `

'
rake aborted!
Command failed with status (1): [/home/ericm/.rvm/rubies/ruby-1.9.2-p290/bi...]

libOpenCL.so exists in /usr/lib64/libOpenCL.so. How do I get the tests to run and see that file?