Hello from Linux
#4
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
Reply


Messages In This Thread
Hello from Linux - by Fiel - 2013-04-17, 11:16 PM
Hello from Linux - by ShinkuDragon - 2013-04-17, 11:24 PM
Hello from Linux - by Takebacker - 2013-04-17, 11:25 PM
Hello from Linux - by Fiel - 2013-04-17, 11:32 PM
Hello from Linux - by VerrKol - 2013-04-17, 11:53 PM
Hello from Linux - by Jedward - 2013-04-17, 11:54 PM
Hello from Linux - by Fiel - 2013-04-17, 11:55 PM
Hello from Linux - by Jedward - 2013-04-18, 12:00 AM
Hello from Linux - by Dusk - 2013-04-18, 12:11 AM
Hello from Linux - by Locked - 2013-04-18, 12:25 AM
Hello from Linux - by Fiel - 2013-04-18, 12:41 AM
Hello from Linux - by Chew - 2013-04-18, 02:52 AM
Hello from Linux - by ShinkuDragon - 2013-04-18, 02:40 PM
Hello from Linux - by Chew - 2013-04-18, 08:24 PM
Hello from Linux - by Kalovale - 2013-04-18, 09:33 PM
Hello from Linux - by FenixR - 2013-04-18, 09:54 PM
Hello from Linux - by Zelkova - 2013-04-18, 10:01 PM
Hello from Linux - by Spaz - 2013-04-18, 10:06 PM
Hello from Linux - by Dusk - 2013-04-19, 02:15 AM
Hello from Linux - by HeavyMenace - 2013-04-19, 03:02 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)