You are not logged in.
i was trying to install this:
http://griff.sourceforge.net/sarl3_compiling.html
i think that i installed all required package, but maybe i didn't install the develop. version, i tryed to search with "yaourt" all the needed package and all that i found, i installed...
but i get an error about ruby:
...
g++ -c -I. `pkg-config --cflags gtk+-2.0` -I/usr/include -Wall -O4 -fPIC -o sarl_label_test.dep -M sarl_label_test.cpp
make[1]: Leaving directory `/home/ivan/workspace/sarl3-0.9'
cd ruby && make build_deps
make[1]: Entering directory `/home/ivan/workspace/sarl3-0.9/ruby'
make -fbuild_deps.mak
make[2]: Entering directory `/home/ivan/workspace/sarl3-0.9/ruby'
g++ -c -I. -I.. -I/usr/lib/ruby/1.8/i486-linux/ -I/usr/lib/ruby/1.8/i386-linux -I/mnt/debian-mount/usr/local/include/sarl -I/usr/include -Wall -ggdb -fPIC -o sarl_rb_get_object.dep -M sarl_rb_get_object.cpp
In file included from sarl_rb_get_object.cpp:1:
sarl_rb_get_object.h:4:18: error: ruby.h: No such file or directory
make[2]: *** [sarl_rb_get_object.dep] Error 1
make[2]: Leaving directory `/home/ivan/workspace/sarl3-0.9/ruby'
make[1]: *** [build_deps] Error 2
make[1]: Leaving directory `/home/ivan/workspace/sarl3-0.9/ruby'
make: *** [build_deps] Error 2
and i installed both the library that i found:
1 extra/kdebindings-ruby 4.3.1-1 [installed] (kdebindings)
KDE bindings for ruby
2 extra/ruby 1.9.1_p243-1 [installed]
An object-oriented language for quick and easy programming
maybe it's a problem of the software? somebody is able to install it?
Offline
As a sidenote, you should write a PKGBUILD for it and use makepkg to install it. (and put it on aur too)
Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest
Offline
As a sidenote, you should write a PKGBUILD for it and use makepkg to install it. (and put it on aur too)
before i should be able to install it and now i've some trouble...
Offline
check the include statement in sarl_rb_get_object.cpp Maybe it's using a incorrect hardcoded path?
Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest
Offline
That program requires ruby 1.8 and you have ruby 1.9. Some programs are not yet compatible with 1.9. This may be one of them.
Edit: In adjunction to Mr.Elendig's comment, it could be looking for ruby 1.8's ruby.h. The one for 1.9 is located at /usr/include/ruby-1.9.1/{ruby/,}ruby.h.
Last edited by fsckd (2010-02-03 18:08:58)
aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies
Offline
That program requires ruby 1.8 and you have ruby 1.9. Some programs are not yet compatible with 1.9. This may be one of them.
Edit: In adjunction to Mr.Elendig's comment, it could be looking for ruby 1.8's ruby.h. The one for 1.9 is located at /usr/include/ruby-1.9.1/{ruby/,}ruby.h.
the better is install ruby 1.8 and remove ruby 1.9, right?
Offline
Perhaps but if you have other packages which depend on 1.9 they may break.
aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies
Offline
You can have 1.8 installed alongside 1.9
Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest
Offline
check the include statement in sarl_rb_get_object.cpp Maybe it's using a incorrect hardcoded path?
so the path it's not hardcoded, it's just #include <ruby.h>
i installed the ruby 1.8 with "yaourt ruby1.8", but i can't locate it (i'm trying with "find / -name ruby-1.8", there's a faster way?)...
edit: i found only a file in /usr/bin named ruby-1.8
i should specify the path of my ruby somewhere? maybe editing the makefile?
Last edited by czar82 (2010-02-03 20:11:25)
Offline
i find the ruby1.8 include directory in /opt/ruby1.8/lib/ruby/1.8/i686-linux/ (is there a faster way to find location of installed package instead of using the command "find"?)
now i should modify the makefile, right? Or should i modify a file called from the makefile?
this is my makefile:
.PHONY: build
all: build_deps build
build.mak: build.tcl build_config.tcl build_rules.tcl projects.tcl build_funcs.tcl
tclsh build.tcl > build.makbuild_deps.mak: build_deps.tcl build_config.tcl build_rules.tcl projects.tcl build_funcs.tcl
tclsh build_deps.tcl > build_deps.makbuild_deps: build_deps.mak
$(MAKE) -fbuild_deps.mak
cd ruby && $(MAKE) build_depsbuild: build.mak
$(MAKE) -fbuild.mak
cd ruby && $(MAKE) buildinstall: build.mak
$(MAKE) -fbuild.mak installtests: build.mak
$(MAKE) -fbuild.mak teststest: build.mak
$(MAKE) -fbuild.mak run-testsdep-clean: build.mak
$(MAKE) -fbuild.mak dep-cleanclean:
rm -f *.o *.exe *.so *.dep
rm -rf tmp dist
cd ruby && $(MAKE) clean
i tried to search in the files used from makefiles the string "usr/lib/ruby/1.8" that like you can read in my first post, it is part of the location where the "make" search for ruby.h, but i didn't find any string similar to this, so what should i modify?
Last edited by czar82 (2010-02-04 11:23:35)
Offline
i fixed some errors, but now i get a new error, i think that it's about Ruby, i tried with ruby 1.8 and 1.9 but i get the errors in both...
(would be great make yaourt sarl3 )
In file included from sarl_rb_get_object.cpp:1:
sarl_rb_get_object.h:7: error: 'VALUE' does not name a type
sarl_rb_get_object.h:8: error: variable or field 'sarl_set_ruby_object' declared void
sarl_rb_get_object.h:8: error: 'VALUE' was not declared in this scope
sarl_rb_get_object.h:8: error: expected primary-expression before 'void'
sarl_rb_get_object.cpp:19: error: 'VALUE' was not declared in this scope
sarl_rb_get_object.cpp:20: error: 'VALUE' was not declared in this scope
sarl_rb_get_object.cpp:20: error: template argument 2 is invalid
sarl_rb_get_object.cpp:20: error: template argument 1 is invalid
sarl_rb_get_object.cpp:21: error: template argument 2 is invalid
sarl_rb_get_object.cpp:21: error: template argument 5 is invalid
sarl_rb_get_object.cpp:21: error: invalid type in declaration before ';' token
sarl_rb_get_object.cpp: In function 'void sarl_free_ruby_object(void*)':
sarl_rb_get_object.cpp:28: error: request for member 'erase' in 'global_ptr_map', which is of non-class type 'SarlRubyPtrMap'
sarl_rb_get_object.cpp: At global scope:
sarl_rb_get_object.cpp:31: error: 'VALUE' does not name a type
sarl_rb_get_object.cpp: In function 'int sarl_exists_ruby_object(void*)':
sarl_rb_get_object.cpp:54: error: expected initializer before 'it'
sarl_rb_get_object.cpp:55: error: 'it' was not declared in this scope
sarl_rb_get_object.cpp:55: error: request for member 'end' in 'global_ptr_map', which is of non-class type 'SarlRubyPtrMap'
sarl_rb_get_object.cpp: At global scope:
sarl_rb_get_object.cpp:59: error: variable or field 'sarl_set_ruby_object' declared void
sarl_rb_get_object.cpp:59: error: 'VALUE' was not declared in this scope
sarl_rb_get_object.cpp:59: error: expected primary-expression before 'void'
make[2]: *** [sarl_rb_get_object.o] Error 1
make[2]: Leaving directory `/home/ivan/workspace/sarl3-0.9/ruby'
make[1]: *** [build] Error 2
make[1]: Leaving directory `/home/ivan/workspace/sarl3-0.9/ruby'
make: *** [build] Error 2
Offline