Giter Site home page Giter Site logo

Comments (12)

matschaffer avatar matschaffer commented on September 14, 2024 30

@andreebrazeau I don't have rubymine handy, but based on https://youtrack.jetbrains.com/issue/RUBY-26859#focus=Comments-27-4315485.0-0 this might work if you haven't already tried it:

gem install --local /Applications/RubyMine.app/Contents/plugins/ruby/rb/gems/debase-0.3.0.beta34.gem -- --with-cflags="-Wno-error=implicit-function-declaration"

from debase.

yspreen avatar yspreen commented on September 14, 2024 24

Jeez, finally.

sudo gem install debase --version '>= 0.2.5.beta2'

from debase.

matschaffer avatar matschaffer commented on September 14, 2024 12

Incase it helps, the workaround in the description basically works for IntelliJ Ultimate too, just a different path for the gem file.

gem install --local ~/Library/Application\ Support/JetBrains/IntelliJIdea2020.2/plugins/ruby/rb/gems/debase-0.3.0.beta34.gem -- --with-cflags="-Wno-error=implicit-function-declaration"

from debase.

elviajero971 avatar elviajero971 commented on September 14, 2024 5

Hello there. I'm having some issues regarding the installation of ruby 2.6.6 using rbenv on a macbook air M1 Big Sur. I tried several tutorial but nothing seems to work... Any tips from you guys ?
There is the different tutorials followed:

https://www.codegrepper.com/code-examples/delphi/ruby+install+mac

https://gorails.com/setup/osx/11.0-big-sur

https://brandur.org/fragments/ruby-3-on-m1?fbclid=IwAR0hTYdiw_GOtGbWL4kRs5f2zcnL6NhdQh99DGw1fZMoyUr9pvvGTIYwLyM

I always got the same error:

`
Downloading openssl-1.1.1i.tar.gz...
-> https://dqw8nmjcqpjn7.cloudfront.net/e8be6a35fe41d10603c3cc635e93289ed00bf34b79671a3a4de64fcee00d5242
Installing openssl-1.1.1i...
Installed openssl-1.1.1i to /Users/lucas-illiano/.rubies/ruby-2.6.6-arm

Downloading ruby-2.6.6.tar.bz2...
-> https://cache.ruby-lang.org/pub/ruby/2.6/ruby-2.6.6.tar.bz2
Installing ruby-2.6.6...
ruby-build: using readline from homebrew

BUILD FAILED (macOS 11.1 using ruby-build 20210119)

Inspect or clean up the working tree at /var/folders/pv/4_6kwrq57y3567vcdv1d2j780000gn/T/ruby-build.20210125200711.41511.yqtTCv
Results logged to /var/folders/pv/4_6kwrq57y3567vcdv1d2j780000gn/T/ruby-build.20210125200711.41511.log

Last 10 log lines:
return document->nodes.top - document->nodes.start;
~~~~~~ ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
../.././ext/psych/yaml/api.c:1321:32: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
return document->nodes.top - document->nodes.start;
~~~~~~ ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
5 warnings generated.
linking shared-object zlib.bundle
1 warning generated.
linking shared-object psych.bundle
make: *** [build-ext] Error 2
`

Thanks by advance for your answers. :)

Last UPDATE: All issues fixed with the command
RUBY_CFLAGS="-Wno-error=implicit-function-declaration" rbenv install 2.6.6

from debase.

BooVeMan avatar BooVeMan commented on September 14, 2024 3

I'm seeing the same error on ruby 2.7.1 and Catalina, when trying to install from inside Rubymine:

current directory: /Users/burkhardvogel-kreykenbohm/.rvm/gems/ruby-2.7.1/gems/debase-0.3.0.beta34/ext
/Users/burkhardvogel-kreykenbohm/.rvm/rubies/ruby-2.7.1/bin/ruby -I /Users/burkhardvogel-kreykenbohm/.rvm/rubies/ruby-2.7.1/lib/ruby/2.7.0 -r ./siteconf20200812-74217-ge2upx.rb extconf.rb
/Users/burkhardvogel-kreykenbohm/.rvm/src/ruby-2.7.1
checking for vm_core.h... yes
checking for iseq.h... yes
checking for method.h... yes
checking for version.h... yes
creating Makefile

current directory: /Users/burkhardvogel-kreykenbohm/.rvm/gems/ruby-2.7.1/gems/debase-0.3.0.beta34/ext
make "DESTDIR=" clean

current directory: /Users/burkhardvogel-kreykenbohm/.rvm/gems/ruby-2.7.1/gems/debase-0.3.0.beta34/ext
make "DESTDIR="
compiling breakpoint.c
breakpoint.c:34:26: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32]
z5b0d67e460->z1bdac88cc2=strlen(z5e1fde07c3);z5b0d67e460->z0b7a8f8ed2=
                        ~^~~~~~~~~~~~~~~~~~~
breakpoint.c:42:31: warning: misleading indentation; statement is not part of the previous 'if' [-Wmisleading-indentation]
z3d2bd811aa==Qnil)return Qnil;zc4b0a3b11f=FIX2INT(z619c7a8bf2);for(z69ad33d2f6=
                              ^
breakpoint.c:41:71: note: previous statement is here
z69ad33d2f6;int zc4b0a3b11f;VALUE zf7a8bf7010;z29dc5df85a*z5b0d67e460;if(
                                                                      ^
breakpoint.c:61:13: warning: implicit conversion loses integer precision: 'VALUE' (aka 'unsigned long') to 'int' [-Wshorten-64-to-32]
z1c3440c3bb=zf35dc14a7b;return z5b0d67e460->z1c3440c3bb;}static VALUE 
           ~^~~~~~~~~~~
breakpoint.c:79:58: warning: misleading indentation; statement is not part of the previous 'if' [-Wmisleading-indentation]
Qtrue!=z5b0d67e460->z1c3440c3bb)return(0x15+9064-0x237d);if(NIL_P(z5b0d67e460->
                                                         ^
breakpoint.c:78:75: note: previous statement is here
(0x1c01+1329-0x2132);Data_Get_Struct(zf7a8bf7010,z29dc5df85a,z5b0d67e460);if(
                                                                          ^
breakpoint.c:80:39: warning: misleading indentation; statement is not part of the previous 'if' [-Wmisleading-indentation]
zf52c4d52d1))return(0x23ba+83-0x240c);if(NIL_P(zd0330fb57d)){z0a4e4f059c=
                                      ^
breakpoint.c:79:58: note: previous statement is here
Qtrue!=z5b0d67e460->z1c3440c3bb)return(0x15+9064-0x237d);if(NIL_P(z5b0d67e460->
                                                         ^
5 warnings generated.
compiling context.c
context.c:91:75: warning: use of unary operator that may be intended as compound assignment (-=)
(0xb4f+4363-0x1c5a);z23c1122dc9->z2c5eef0cd1=NULL;z23c1122dc9->z6b895785aa=-
                                                                          ^~
context.c:136:48: warning: misleading indentation; statement is not part of the previous 'if' [-Wmisleading-indentation]
"\x70\x6f\x73\x74\x2d\x6d\x6f\x72\x74\x65\x6d";return ID2SYM(rb_intern(symbol));
                                               ^
context.c:135:21: note: previous statement is here
"\x6e\x6f\x6e\x65";}if(zb213dfaaab(z23c1122dc9,za5d2480b23))symbol=
                    ^
context.c:139:32: warning: incompatible pointer types passing 'rb_control_frame_t *' (aka 'struct rb_control_frame_struct *') to parameter of type 'const rb_execution_context_t *' (aka 'const struct rb_execution_context_struct *') [-Wincompatible-pointer-types]
rb_control_frame_t*z3d80811b15=z14e7cad448(z43ea6b63f3);rb_control_frame_t*cfp;
                               ^~~~~~~~~~~~~~~~~~~~~~~~
context.c:15:56: note: expanded from macro 'z14e7cad448'
#define z14e7cad448(thread) (RUBY_VM_END_CONTROL_FRAME((rb_control_frame_t *)(\
                                                       ^~~~~~~~~~~~~~~~~~~~~~~~
/Users/burkhardvogel-kreykenbohm/.rvm/src/ruby-2.7.1/vm_core.h:1391:57: note: passing argument to parameter 'ec' here
RUBY_VM_END_CONTROL_FRAME(const rb_execution_context_t *ec)
                                                        ^
context.c:139:20: warning: initializing 'rb_control_frame_t *' (aka 'struct rb_control_frame_struct *') with an expression of type 'const rb_control_frame_t *' (aka 'const struct rb_control_frame_struct *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
rb_control_frame_t*z3d80811b15=z14e7cad448(z43ea6b63f3);rb_control_frame_t*cfp;
                   ^           ~~~~~~~~~~~~~~~~~~~~~~~~
context.c:147:56: warning: incompatible pointer types passing 'rb_control_frame_t *' (aka 'struct rb_control_frame_struct *') to parameter of type 'const rb_execution_context_t *' (aka 'const struct rb_execution_context_struct *') [-Wincompatible-pointer-types]
rb_control_frame_t*cfp){rb_control_frame_t*z3d80811b15=z14e7cad448(z43ea6b63f3);
                                                       ^~~~~~~~~~~~~~~~~~~~~~~~
context.c:15:56: note: expanded from macro 'z14e7cad448'
#define z14e7cad448(thread) (RUBY_VM_END_CONTROL_FRAME((rb_control_frame_t *)(\
                                                       ^~~~~~~~~~~~~~~~~~~~~~~~
/Users/burkhardvogel-kreykenbohm/.rvm/src/ruby-2.7.1/vm_core.h:1391:57: note: passing argument to parameter 'ec' here
RUBY_VM_END_CONTROL_FRAME(const rb_execution_context_t *ec)
                                                        ^
context.c:147:44: warning: initializing 'rb_control_frame_t *' (aka 'struct rb_control_frame_struct *') with an expression of type 'const rb_control_frame_t *' (aka 'const struct rb_control_frame_struct *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
rb_control_frame_t*cfp){rb_control_frame_t*z3d80811b15=z14e7cad448(z43ea6b63f3);
                                           ^           ~~~~~~~~~~~~~~~~~~~~~~~~
context.c:167:42: warning: unused variable 'size' [-Wunused-variable]
static VALUE z6af2b11a8e(VALUE self){int size,pc;z251a839b07*z23c1122dc9;
                                         ^
context.c:171:36: warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
(cfp==NULL){return Qnil;}pc=cfp->pc-cfp->iseq->body->iseq_encoded;z1f5025e187(
                           ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
context.c:180:59: warning: assigning to 'rb_iseq_t *' (aka 'struct rb_iseq_struct *') from 'const rb_iseq_t *' (aka 'const struct rb_iseq_struct *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
cfp=za8739056e8(z43ea6b63f3,z23c1122dc9->z440b3c1264);iseq=cfp->iseq;z04f4e87de0
                                                          ^~~~~~~~~~
context.c:187:65: error: implicit declaration of function 'z6c1b13c43d' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
z23c1122dc9->pc==pc){int line=z81f3c486e3(iseq,z23c1122dc9->pc);z6c1b13c43d(
                                                                ^
context.c:189:1: error: implicit declaration of function 'zcf306596f3' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
zcf306596f3(z9295263560->zf1dbe334ed,z43ea6b63f3,z9b06b9d99e,z23c1122dc9->
^
context.c:197:18: warning: assigning to 'rb_iseq_t *' (aka 'struct rb_iseq_struct *') from 'const rb_iseq_t *' (aka 'const struct rb_iseq_struct *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
zf4157a8cc0];iseq=cfp->iseq;z9704694096(iseq,z43ea6b63f3,z23c1122dc9->pc,
                 ^~~~~~~~~~
context.c:199:1: error: implicit declaration of function 'zcf306596f3' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
zcf306596f3(z9295263560->zf1dbe334ed,z43ea6b63f3,z9b06b9d99e,z23c1122dc9->
^
context.c:206:35: error: implicit declaration of function 'z6c1b13c43d' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
z81f3c486e3(iseq,z23c1122dc9->pc);z6c1b13c43d(zb7973f494e,z23c1122dc9,
                                  ^
context.c:209:48: warning: passing 'const rb_iseq_t *' (aka 'const struct rb_iseq_struct *') to parameter of type 'rb_iseq_t *' (aka 'struct rb_iseq_struct *') discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
rb_iseq_path(iseq)));}return Qnil;}z8915b76faa(cfp->iseq,z43ea6b63f3,z9295263560
                                               ^~~~~~~~~
./debase_internals.h:60:72: note: passing argument to parameter 'iseq' here
z66506c879c,int z61151e0a12,int z440b3c1264);int z8915b76faa(rb_iseq_t*iseq,
                                                                       ^
context.c:221:63: error: implicit declaration of function 'zcf306596f3' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
->ze546e5a29e[z69ad33d2f6];if(z9295263560->zf1dbe334ed!=NULL){zcf306596f3(
                                                              ^
11 warnings and 5 errors generated.
make: *** [context.o] Error 1

make failed, exit code 2

from debase.

repoles avatar repoles commented on September 14, 2024 1

Thank you very much, @matschaffer! I'm not using macOS Big Sur yet, but your suggestion solved my problem of installing the RubyMine debugger in macOS Catalina 10.15.6.

from debase.

matschaffer avatar matschaffer commented on September 14, 2024

ruby 2.6.6 (rbenv install) and Catalina here, seeing the same when intellij attempts to build debase-0.3.0.beta34 I've commented on https://youtrack.jetbrains.com/issue/RUBY-26859 which looks to be filed from the same problem on 2.7.0 preview

from debase.

andreebrazeau avatar andreebrazeau commented on September 14, 2024

Couldn't do the same fu rubymine, Is there a other way to install the GEM with RubyMine?

from debase.

getaaron avatar getaaron commented on September 14, 2024

For anyone nervous about upgrading, @matschaffer's worked for me on Big Sur.

from debase.

hurricup avatar hurricup commented on September 14, 2024

Fixed in RubyMine 2020.2.2 RC https://youtrack.jetbrains.com/issue/RUBY-26859

from debase.

hurricup avatar hurricup commented on September 14, 2024

@elv

Hello there. I'm having some issues regarding the installation of ruby 2.6.6 using rbenv on a macbook air M1 Big Sur. I tried several tutorial but nothing seems to work... Any tips from you guys ?

This repo is about ruby debugger. Not ruby.

from debase.

yspreen avatar yspreen commented on September 14, 2024

I have neither RubyMine, nor Jetbrains IDEs, not rvm, nor rbenv installed. How am I supposed to install debase?? Nothing seems to work. I don't get why this was closed

from debase.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.