Code:
fiel@fiel-MS-7681 ~ $ vim hello.rb
fiel@fiel-MS-7681 ~ $ ruby hello.rb
The program 'ruby' can be found in the following packages:
* ruby1.8
* ruby1.9.1
Try: sudo apt-get install <selected package>
fiel@fiel-MS-7681 ~ $
wtp ruby, I just compiled you. Why you no run.
EDIT: Aha, found it!
Code:
/home/fiel/ruby-2.0.0-p0/lib/fileutils.rb:1442:in `initialize': Permission denied - /usr/local/bin/ruby (Errno::EACCES)
from /home/fiel/ruby-2.0.0-p0/lib/fileutils.rb:1442:in `open'
from /home/fiel/ruby-2.0.0-p0/lib/fileutils.rb:1442:in `block in copy_file'
from /home/fiel/ruby-2.0.0-p0/lib/fileutils.rb:1441:in `open'
from /home/fiel/ruby-2.0.0-p0/lib/fileutils.rb:1441:in `copy_file'
from /home/fiel/ruby-2.0.0-p0/lib/fileutils.rb:547:in `copy_file'
from /home/fiel/ruby-2.0.0-p0/lib/fileutils.rb:928:in `block in install'
from /home/fiel/ruby-2.0.0-p0/lib/fileutils.rb:1620:in `block in fu_each_src_dest'
from /home/fiel/ruby-2.0.0-p0/lib/fileutils.rb:1633:in `fu_each_src_dest0'
from /home/fiel/ruby-2.0.0-p0/lib/fileutils.rb:1618:in `fu_each_src_dest'
from /home/fiel/ruby-2.0.0-p0/lib/fileutils.rb:925:in `install'
from ./tool/rbinstall.rb:157:in `install'
from ./tool/rbinstall.rb:330:in `block in <main>'
from ./tool/rbinstall.rb:758:in `call'
from ./tool/rbinstall.rb:758:in `block (2 levels) in <main>'
from ./tool/rbinstall.rb:755:in `each'
from ./tool/rbinstall.rb:755:in `block in <main>'
from ./tool/rbinstall.rb:751:in `each'
from ./tool/rbinstall.rb:751:in `<main>'
make: *** [do-install-all] Error 1
EDIT: Ran "sudo make install" instead of "make install".
Code:
fiel@fiel-MS-7681 ~ $ ruby hello.rb
Hello world!
I feel so out of practice.
Code:
fiel@fiel-MS-7681 ~/Documents $ vim hello.c
fiel@fiel-MS-7681 ~/Documents $ gcc hello.c
fiel@fiel-MS-7681 ~/Documents $ a.out
Traceback (most recent call last):
File "/usr/lib/command-not-found", line 23, in <module>
import gettext
File "/usr/local/lib/python3.3/gettext.py", line 49, in <module>
import locale, copy, io, os, re, struct, sys
File "/usr/local/lib/python3.3/struct.py", line 12, in <module>
from _struct import *
ImportError: No module named '_struct'
fiel@fiel-MS-7681 ~/Documents $ ls
a.out hello.py hello.rb hello.c
wut
Code:
fiel@fiel-MS-7681 ~/Documents $ ./a.out
Hello world!
fiel@fiel-MS-7681 ~/Documents $
I feel retarded jesus christ
Bookmarks