Skip to content
New issue

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

mruby 1.2.0 fails #259

Open
sunnyrjuneja opened this issue Jan 16, 2016 · 4 comments
Open

mruby 1.2.0 fails #259

sunnyrjuneja opened this issue Jan 16, 2016 · 4 comments
Labels

Comments

@sunnyrjuneja
Copy link

Hi,

I'm trying to install mruby 1.2.0 (the latest version of mruby) on OS X 10.10.4.

λ →  ruby-install mruby 1.2.0>>> Installing mruby 1.2.0 into /Users/sunnyjuneja/.rubies/mruby-1.2.0 ...
>>> Installing dependencies for mruby 1.2.0 ...
Warning: bison-3.0.4 already installed
>>> Downloading https://github.com/mruby/mruby/archive/1.2.0/mruby-1.2.0.tar.gz into /Users/sunnyjuneja/src ...
>>> Verifying mruby-1.2.0.tar.gz ...
>>> Extracting mruby-1.2.0.tar.gz to /Users/sunnyjuneja/src/mruby-1.2.0 ...
>>> Cleaning mruby 1.2.0 ...
ruby ./minirake clean
trace:
    [0] ./minirake:7
./minirake:7: undefined method 'require' for main (NoMethodError)
make: *** [clean] Error 1
!!! Cleaning mruby 1.2.0 failed!

When I try to install mruby 1.1.0, it successfully completes. If there's anything I can do to improve this issue, let me know. Thanks for all your hard work. I find ruby-install very useful.

@sunnyrjuneja
Copy link
Author

Also, when I run clang -v, this is the output:

clang -v
Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
Target: x86_64-apple-darwin14.4.0
Thread model: posix

@xavriley
Copy link

I just had the same problem because I'd installed mruby 1.0 with rvm before trying to install mruby-head.
Switching my ruby version to MRI 2.2.1 fixed it for me.

@drhuffman12
Copy link

I also got "... ./minirake:7: undefined method 'require' for main ..." on android [via Gnuroot].

@rmosolgo
Copy link

rmosolgo commented Apr 4, 2016

Ohhh to clarify @xavriley 's comment, the problem is that ./minirake is trying to use mruby but it should use "real" ruby.

I had to change my project to use "real" ruby with rbenv local 2.3.0

So for me, it was fixed by

~/my-project/mruby $ make 
ruby ./minirake
trace:
    [0] ./minirake:7
./minirake:7: undefined method 'require' for main (NoMethodError)
~/my-project/mruby $ cd .. 
~/my-project $ rbenv local 2.3.0 
~/my-project $ cd mruby 
~/my-project/mruby $ make 
# compile output

@havenwood havenwood added the mruby label Jun 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants