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

rake error on Ubuntu 14.04 #35

Open
ryuichiueda opened this issue Jan 13, 2015 · 6 comments
Open

rake error on Ubuntu 14.04 #35

ryuichiueda opened this issue Jan 13, 2015 · 6 comments

Comments

@ryuichiueda
Copy link

Though @kzhd15med3t said that an error that I pointed out yesterday was mended, an error happened today too. I paste the log of rake.

ueda@remote:~/rumin$ rake
sh ./mruby.sh
mruby is already exists in runtime directory. Then skip to clone mruby.
(in /home/ueda/rumin/runtime)
GIT CHECKOUT master 
Already on 'master'
Your branch is up-to-date with 'origin/master'.
GIT CHECKOUT master 
Already on 'master'
Your branch is up-to-date with 'origin/master'.
rake aborted!
cannot load such file -- mkmf
Rakefile:14:in `load'
rake aborted!
Command failed with status (1): [sh ./mruby.sh...]
/home/ueda/rumin/Rakefile:10:in `block in <top (required)>'
Tasks: TOP => default => mruby
(See full trace by running task with --trace)
@ryuichiueda
Copy link
Author

... and this is the error on Mac obtained just now. I think that rake does not find -lncursesw as I have taught this problem yesterday. But it will be very good when this problem is removed and someone never meets the same problem.

Thank you.

uedambp:rumin ueda$ rake
sh ./mruby.sh
mruby is already exists in runtime directory. Then skip to clone mruby.
mruby is already compiled. Then skip to compile mruby.
building.
if test -e build; then echo 'build directory is already exist. Now cleaning.'; rm -fr build/*; else mkdir build; fi
build directory is already exist. Now cleaning.
gcc -Iruntime/include src/rumin.c runtime/build/host/lib/libmruby.a -lm -lncursesw -ldl -lyaml -o build/rumin
ld: library not found for -lncursesw
clang: error: linker command failed with exit code 1 (use -v to see invocation)
rake aborted!
Command failed with status (1): [gcc -Iruntime/include src/rumin.c runtime/...]
/Users/ueda/GIT/rumin/Rakefile:27:in `block in <top (required)>'
Tasks: TOP => default => build => rumin
(See full trace by running task with --trace)

@kzhd15med3gh
Copy link
Contributor

Thank you for your contribution.
At the first comment, the problem was solved to install package which is ruby-dev on my environment. Please try.
At the second comment, please install ncurses 5.9 with --enable-widec option.
http://ftp.gnu.org/pub/gnu/ncurses/

Finally, we are now talking about how to solve dependency in install phase.

@ryuichiueda
Copy link
Author

mmm... not yet in my Ubuntu. It will be a path problem and should be solved in Rakefile.

ueda@remote:~/rumin$ sudo apt-get install ruby-dev
ueda@remote:~/rumin$ sudo apt-get install bison
ueda@remote:~/rumin$ sudo apt-get install libyaml-dev
ueda@remote:~/rumin$ wget http://ftp.gnu.org/pub/gnu/ncurses/ncurses-5.9.tar.gz
ueda@remote:~/rumin$ tar zxvf ncurses-5.9.tar.gz 
ueda@remote:~/rumin$ cd ncurses-5.9/
ueda@remote:~/rumin/ncurses-5.9$ ./configure 
ueda@remote:~/rumin/ncurses-5.9$ sudo make install
ueda@remote:~/rumin/ncurses-5.9$ cd ..
ueda@remote:~/rumin$ rake
...
/usr/bin/ld: -lncursesw が見つかりません
...

@kzhd15med3gh
Copy link
Contributor

Please replace the configure script's option like this.
./configure --enable-widec

@ryuichiueda
Copy link
Author

OK, I'll try it tomorrow. Anyway, it should be written anywhere in a document. Otherwise, you will lose enthusiasts who spread your product across the world.

I wish I could contribute through a pull request, but...
I'm sorry.

@ychubachi
Copy link

yard gem is also required.
https://github.com/ncq/rumin#requirements

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants