Datamatrix and ruby 1.9

294 views
Skip to first unread message

kpitn

unread,
Jun 8, 2012, 11:06:33 AM6/8/12
to ruby-...@googlegroups.com
Hi,

Actually with gem "semacode" & bundle install

Installing semacode (0.7.4) with native extensions /home/xxxx/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:552:in `rescue in block in build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError)
/home/xxxx/.rvm/rubies/ruby-1.9.2-p180/bin/ruby extconf.rb 
creating Makefile
make
gcc -I. -I/home/xxxx/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/x86_64-linux -I/home/xxxx/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1/ruby/backward -I/home/pierre/.rvm/rubies/ruby-1.9.2-p180/include/ruby-1.9.1 -I.   -fPIC -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wno-long-long  -fPIC  -o semacode.o -c semacode.c
semacode.c: In function ‘semacode_init’:
semacode.c:129:27: erreur: ‘struct RString’ has no member named ‘len’
semacode.c: In function ‘semacode_encode’:
semacode.c:243:44: erreur: ‘struct RString’ has no member named ‘len’
make: *** [semacode.o] Erreur 1

I see that you create a repository : https://github.com/toretore/semacode

How do you user this repository (cause it's not a gem) ?
Have you a solution to use datamatrix with ruby 1.9 ?

Tore Darell

unread,
Jun 9, 2012, 3:49:07 PM6/9/12
to ruby-...@googlegroups.com
You can download it locally and add it to your app's $PATH. If you want a gem you can build and install it locally:

$ cd semacode
$ rake
$ gem install pkg/semacode-0.7.4.gem
> --
> You received this message because you are subscribed to the Google Groups "Barby" group.
> To view this discussion on the web visit https://groups.google.com/d/msg/ruby-barby/-/7Q7Y4tDyS58J.
> To post to this group, send email to ruby-...@googlegroups.com.
> To unsubscribe from this group, send email to ruby-barby+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/ruby-barby?hl=en.

kpitn

unread,
Jun 11, 2012, 4:25:23 AM6/11/12
to ruby-...@googlegroups.com
Thanx for your help, it works.

Pierre
> To unsubscribe from this group, send email to ruby-barby+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages