We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ruby_options
According to this SO question, just calling ruby_init no longer works in Ruby 3.2 and you have to call ruby_options prior to setting the load path.
ruby_init
Figure out why that is and update the instructions for running Ruby in C.
The text was updated successfully, but these errors were encountered:
Hello, Works for me 3.3.1
#include <ruby.h> int main(int argc, char **argv) { ruby_init(); rb_eval_string("puts 'Hello from eval'"); return ruby_cleanup(0); }
gcc main.c -o ruby_in_c -I/home/user/.rbenv/versions/3.3.1/include/ruby-3.3.0 \ -I/home/user/.rbenv/versions/3.3.1/include/ruby-3.3.0/x86_64-linux \ -L/home/user/.rbenv/versions/3.3.1/lib\ -lruby
Sorry, something went wrong.
No branches or pull requests
According to this SO question, just calling
ruby_init
no longer works in Ruby 3.2 and you have to callruby_options
prior to setting the load path.Figure out why that is and update the instructions for running Ruby in C.
The text was updated successfully, but these errors were encountered: