-
Notifications
You must be signed in to change notification settings - Fork 82
Can't compile on gentoo linux #58
Comments
Hi, funkoolow. If I change this line LIBS = $(LIBRUBYARG_SHARED) -lportaudio -lpthread -lrt -ldl -lcrypt -lm -lc to this (adding -lmpg123): LIBS = $(LIBRUBYARG_SHARED) -lportaudio -lmpg123 -lpthread -lrt -ldl -lcrypt -lm -lc then this command cd /usr/local/lib64/ruby/gems/1.9.1/gems/audite-0.3.0/ext/portaudio make runs successfully and "portaudio.so" compiles. I am not a rubyist, so I don't know how to put that change correctly into "gem install audite" procedure. |
I'm also having the same issue compiling on Cygwin. Ruby seems to cache my partially installed gem in a different place ( I'm frankly very confused why this isn't in the Makefile to begin with, possibly it isn't required on some platforms? Besides that, it seems impossible to continue the installation of the gem after compiling the .so manually. Is Ruby just painful like this? I also can't figure out how to install a gem "from source", |
Add |
hi,
trying to compile on gentoo, stops with this output:
/usr/bin/ruby19 extconf.rb
checking for portaudio.h... yes
checking for main() in -lportaudio... yes
checking for PaStreamCallbackTimeInfo in portaudio.h... yes
creating Makefile
make
compiling portaudio.c
linking shared-object portaudio.so
portaudio.o: nella funzione "rb_portaudio_write_from_mpg":
portaudio.c:(.text+0x4d9): riferimento non definito a "mpg123_read"
portaudio.c:(.text+0x534): riferimento non definito a "mpg123_plain_strerror"
collect2: error: ld returned 1 exit status
make: *** [portaudio.so] Errore 1
maybe some specific support must be enabled in portaudio? my version is 19_pre20140130, compiled with following flags: alsa cxx -debug -jack -oss -static-libs.
thanks in advance
The text was updated successfully, but these errors were encountered: