You are not logged in.

#1 2010-02-03 16:30:36

czar82
Member
From: Italy - Panormus
Registered: 2009-06-15
Posts: 36

problem in installing a software (maybe missing package)

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

#2 2010-02-03 16:59:35

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: problem in installing a software (maybe missing package)

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

#3 2010-02-03 17:49:04

czar82
Member
From: Italy - Panormus
Registered: 2009-06-15
Posts: 36

Re: problem in installing a software (maybe missing package)

Mr.Elendig wrote:

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...  neutral

Offline

#4 2010-02-03 17:59:55

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: problem in installing a software (maybe missing package)

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

#5 2010-02-03 18:01:39

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: problem in installing a software (maybe missing package)

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

#6 2010-02-03 18:24:57

czar82
Member
From: Italy - Panormus
Registered: 2009-06-15
Posts: 36

Re: problem in installing a software (maybe missing package)

fsckd wrote:

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

#7 2010-02-03 18:28:57

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: problem in installing a software (maybe missing package)

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

#8 2010-02-03 18:39:08

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: problem in installing a software (maybe missing package)

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

#9 2010-02-03 20:00:10

czar82
Member
From: Italy - Panormus
Registered: 2009-06-15
Posts: 36

Re: problem in installing a software (maybe missing package)

Mr.Elendig wrote:

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

#10 2010-02-04 10:20:09

czar82
Member
From: Italy - Panormus
Registered: 2009-06-15
Posts: 36

Re: problem in installing a software (maybe missing package)

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.mak

build_deps.mak: build_deps.tcl build_config.tcl build_rules.tcl projects.tcl build_funcs.tcl
    tclsh build_deps.tcl > build_deps.mak

build_deps: build_deps.mak
    $(MAKE) -fbuild_deps.mak
    cd ruby && $(MAKE) build_deps

build: build.mak
    $(MAKE) -fbuild.mak
    cd ruby && $(MAKE) build

install: build.mak
    $(MAKE) -fbuild.mak install

tests: build.mak
    $(MAKE) -fbuild.mak tests

test: build.mak
    $(MAKE) -fbuild.mak run-tests

dep-clean: build.mak
    $(MAKE) -fbuild.mak dep-clean

clean:
    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? sad

Last edited by czar82 (2010-02-04 11:23:35)

Offline

#11 2010-02-04 17:30:55

czar82
Member
From: Italy - Panormus
Registered: 2009-06-15
Posts: 36

Re: problem in installing a software (maybe missing package)

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... neutral
(would be great make yaourt sarl3 sad )

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

Board footer

Powered by FluxBB