Closed luc4leone closed 3 years ago
I updated rubygems
$ sudo gem install rubygems-update`
Done installing documentation for rubygems-update after 40 seconds
Then I installed debase-ruby_core_source
$ sudo gem install debase-ruby_core_source
Successfully installed debase-ruby_core_source-0.10.5
Then tried to install debase
but got back the same error.
@luc4leone Could you try to install these packages: https://stackoverflow.com/a/14217431
@ViugiNick thanks! When I run
apt-get install libcurl4-openssl-dev libgcrypt11-dev libgnutls-dev libidn11-dev libldap2-dev librtmp-dev libtasn1-3-dev m4
-bash: apt-get: command not found
Then I tried
$ brew install libcurl4-openssl-dev
Error: No available formula with the name "libcurl4-openssl-dev
doing something wrong?
Thanks
Thank you, this unblocked me.
same error
@dimsky The latest debase version should work fine now
Thanks
How did it end up?
How did it end up?
I surrendered.
Lol...
I had an issue with this on macOS up until I went and installed the ruby version I was using but using rvm instead of whatever was installed at the time.
rvm installs ruby binaries and source apparently, which debase has to have in order to compile native extensions.
I don't know if this may help because it kind of happened by accident but the way I managed to make it work is by relocating the place of where the gems are from /Library/Ruby/
to somewhere else in my case I used rbenv
default path. Also something worth mentioning while using rbenv
is to have a version already installed.
I know is not much but I felt like sharing after struggling with this for 2 hours. Cheers.
This is an active issue. I have not been able to install debase on Mac OS Catalina 10.15.7
using Ruby 2.5.6
same to me
Thanks
How did it end up?
How did it end up?
Don't use rvm. use pure ruby though brew. it fixes this issue for me (MacOS HS 10.15)
Please, try https://github.com/ruby-debug/debase/releases/tag/v0.2.5.beta2 should work just fine
Still having this issue:
➜ test git:(develop) ✗ gem install debase --pre
Building native extensions. This could take a while...
ERROR: Error installing debase:
ERROR: Failed to build gem native extension.
current directory: /Users/shqear/.rvm/gems/truffleruby-head/gems/debase-0.2.5.beta2/ext
/Users/shqear/.rvm/rubies/truffleruby-head/bin/ruby -I /Users/shqear/.rvm/rubies/truffleruby-head/lib/ruby/site_ruby/3.1.2.4 extconf.rb
checking for vm_core.h... no
checking for vm_core.h... no
**************************************************************************
No source for ruby-3.1.2-p0 (revision 2f21e36a1731d779889c4d4935a3bc26308d159e) provided with
debase-ruby_core_source gem. Falling back to ruby-3.1.0-p0.
**************************************************************************
checking for vm_core.h... no
Makefile creation failed
*************************************************************
NOTE: If your headers were not found, try passing
--with-ruby-include=PATH_TO_HEADERS
*************************************************************
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/Users/shqear/.rvm/rubies/truffleruby-head/bin/ruby
--with-ruby-dir
--without-ruby-dir
--with-ruby-include=${ruby-dir}/include
--with-ruby-lib
--without-ruby-lib=${ruby-dir}/lib
--with-vm_core-dir
--without-vm_core-dir
--with-vm_core-include
--without-vm_core-include=${vm_core-dir}/include
--with-vm_core-lib
--without-vm_core-lib=${vm_core-dir}/lib
Contents of mkmf.log:
have_header: checking for vm_core.h... -------------------- no
LD_LIBRARY_PATH=. "/Users/shqear/.rvm/rubies/truffleruby-head/lib/sulong/native/bin/graalvm-native-clang -o conftest -I/Users/shqear/.rvm/rubies/truffleruby-head/lib/cext/include -I/Users/shqear/.rvm/rubies/truffleruby-head/lib/cext/include/ruby/backward -I/Users/shqear/.rvm/rubies/truffleruby-head/lib/cext/include -I. -I/Users/shqear/.rvm/src/truffleruby-head -D_DARWIN_C_SOURCE -DTRUFFLERUBY_ABI_VERSION=3.1.2.4 -I/usr/local/opt/openssl@1.1/include -Werror=implicit-function-declaration -Wno-int-conversion -Wno-int-to-pointer-cast -Wno-incompatible-pointer-types -Wno-format-invalid-specifier -Wno-format-extra-args -ferror-limit=500 -Werror=implicit-function-declaration conftest.c -L. -L/usr/local/opt/openssl@1.1/lib -lgraalvm-llvm -L/Users/shqear/.rvm/rubies/truffleruby-head/lib/cext -rpath /Users/shqear/.rvm/rubies/truffleruby-head/lib/cext -ltruffleruby -rpath /Users/shqear/.rvm/rubies/truffleruby-head/lib/sulong/native/lib"
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: int main(int argc, char **argv)
4: {
5: return !!argv[argc];
6: }
/* end */
LD_LIBRARY_PATH=. "/Users/shqear/.rvm/rubies/truffleruby-head/lib/sulong/native/bin/graalvm-native-clang -I/Users/shqear/.rvm/rubies/truffleruby-head/lib/cext/include -I/Users/shqear/.rvm/rubies/truffleruby-head/lib/cext/include/ruby/backward -I/Users/shqear/.rvm/rubies/truffleruby-head/lib/cext/include -I. -I/Users/shqear/.rvm/src/truffleruby-head -D_DARWIN_C_SOURCE -DTRUFFLERUBY_ABI_VERSION=3.1.2.4 -I/usr/local/opt/openssl@1.1/include -Werror=implicit-function-declaration -Wno-int-conversion -Wno-int-to-pointer-cast -Wno-incompatible-pointer-types -Wno-format-invalid-specifier -Wno-format-extra-args -ferror-limit=500 -Werror=implicit-function-declaration -c conftest.c"
conftest.c:3:10: fatal error: 'vm_core.h' file not found
#include <vm_core.h>
^~~~~~~~~~~
1 error generated.
Process failed: #<Process::Status: pid 27065 exit 1>
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <vm_core.h>
/* end */
--------------------
have_header: checking for vm_core.h... -------------------- no
LD_LIBRARY_PATH=. "/Users/shqear/.rvm/rubies/truffleruby-head/lib/sulong/native/bin/graalvm-native-clang -I/Users/shqear/.rvm/rubies/truffleruby-head/lib/cext/include -I/Users/shqear/.rvm/rubies/truffleruby-head/lib/cext/include/ruby/backward -I/Users/shqear/.rvm/rubies/truffleruby-head/lib/cext/include -I. -I/Users/shqear/.rvm/rubies/truffleruby-head/lib/cext/include/ruby-3.1.2-p0 -Werror=implicit-function-declaration -Wno-int-conversion -Wno-int-to-pointer-cast -Wno-incompatible-pointer-types -Wno-format-invalid-specifier -Wno-format-extra-args -ferror-limit=500 -Werror=implicit-function-declaration -c conftest.c"
In file included from conftest.c:1:
In file included from /Users/shqear/.rvm/rubies/truffleruby-head/lib/cext/include/ruby.h:38:
In file included from /Users/shqear/.rvm/rubies/truffleruby-head/lib/cext/include/ruby/ruby.h:15:
In file included from /Users/shqear/.rvm/rubies/truffleruby-head/lib/cext/include/ruby/internal/config.h:157:
/Users/shqear/.rvm/rubies/truffleruby-head/lib/cext/include/truffleruby/truffleruby-pre.h:52:2: error: "TRUFFLERUBY_ABI_VERSION must be defined when compiling native extensions. Does the extension override CPPFLAGS or DEFS?"
#error "TRUFFLERUBY_ABI_VERSION must be defined when compiling native extensions. Does the extension override CPPFLAGS or DEFS?"
^
conftest.c:3:10: fatal error: 'vm_core.h' file not found
#include <vm_core.h>
^~~~~~~~~~~
2 errors generated.
Process failed: #<Process::Status: pid 27067 exit 1>
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <vm_core.h>
/* end */
--------------------
have_header: checking for vm_core.h... -------------------- no
LD_LIBRARY_PATH=. "/Users/shqear/.rvm/rubies/truffleruby-head/lib/sulong/native/bin/graalvm-native-clang -I/Users/shqear/.rvm/rubies/truffleruby-head/lib/cext/include -I/Users/shqear/.rvm/rubies/truffleruby-head/lib/cext/include/ruby/backward -I/Users/shqear/.rvm/rubies/truffleruby-head/lib/cext/include -I. -I/Users/shqear/.rvm/gems/truffleruby-head/gems/debase-ruby_core_source-0.10.18/lib/debase/ruby_core_source/ruby-3.1.0-p0 -Werror=implicit-function-declaration -Wno-int-conversion -Wno-int-to-pointer-cast -Wno-incompatible-pointer-types -Wno-format-invalid-specifier -Wno-format-extra-args -ferror-limit=500 -Werror=implicit-function-declaration -c conftest.c"
In file included from conftest.c:1:
In file included from /Users/shqear/.rvm/rubies/truffleruby-head/lib/cext/include/ruby.h:38:
In file included from /Users/shqear/.rvm/rubies/truffleruby-head/lib/cext/include/ruby/ruby.h:15:
In file included from /Users/shqear/.rvm/rubies/truffleruby-head/lib/cext/include/ruby/internal/config.h:157:
/Users/shqear/.rvm/rubies/truffleruby-head/lib/cext/include/truffleruby/truffleruby-pre.h:52:2: error: "TRUFFLERUBY_ABI_VERSION must be defined when compiling native extensions. Does the extension override CPPFLAGS or DEFS?"
#error "TRUFFLERUBY_ABI_VERSION must be defined when compiling native extensions. Does the extension override CPPFLAGS or DEFS?"
^
In file included from conftest.c:3:
In file included from /Users/shqear/.rvm/gems/truffleruby-head/gems/debase-ruby_core_source-0.10.18/lib/debase/ruby_core_source/ruby-3.1.0-p0/vm_core.h:71:
/Users/shqear/.rvm/gems/truffleruby-head/gems/debase-ruby_core_source-0.10.18/lib/debase/ruby_core_source/ruby-3.1.0-p0/internal/array.h:106:1: error: static declaration of 'RARRAY_AREF' follows non-static declaration
RARRAY_AREF(VALUE ary, long i)
^
/Users/shqear/.rvm/rubies/truffleruby-head/lib/cext/include/ruby/internal/core/rarray.h:263:7: note: previous declaration is here
VALUE RARRAY_AREF(VALUE array, long index);
^
2 errors generated.
Process failed: #<Process::Status: pid 27069 exit 1>
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <vm_core.h>
/* end */
--------------------
To see why this extension failed to compile, please check the mkmf.log which can be found here:
/Users/shqear/.rvm/gems/truffleruby-head/extensions/x86_64-darwin/3.1.2.4/debase-0.2.5.beta2/mkmf.log
extconf failed, exit code 1
Gem files will remain installed in /Users/shqear/.rvm/gems/truffleruby-head/gems/debase-0.2.5.beta2 for inspection.
Results logged to /Users/shqear/.rvm/gems/truffleruby-head/extensions/x86_64-darwin/3.1.2.4/debase-0.2.5.beta2/gem_make.out
Notes:
OS: MacOS Montery 12.6.1 (21G217)
truffleruby 23.0.0-dev-2f21e36a, like ruby 3.1.2, GraalVM CE Native [x86_64-darwin]
@shqear93 this debugger is for MRI ruby, not truffleruby
same issue for me, cannot install debase gem on trufflerruby, any suggestions or solutions to run this on trufflerruby? (it's required for rubymine debugger)
@ahlamHani RubyMine won't be able to debug truffleruby. See: https://youtrack.jetbrains.com/issue/RUBY-23526/Support-debugger-for-Truffleruby and related issues.
Hello,
I am on a macOS High Sierra version
10.13
with ruby2.3.3p222
(2016-11-21 revision 56859) [universal.x86_64-darwin17].I'd like to debug Ruby scripts in the vscode editor. To do that I am trying to install
debase
, but I get this error:mkmf.log
Any suggestion on how to fix the problem? I checked issues #57 and #65 but could not fix the problem.
Same problem when trying to install gem
ruby-debug-ide
.Thanks 😊