Software :: Ruby Hangs When Started From Command Line / Solve This?

Jun 24, 2011

I am attempting to start ruby in interactive mode from the command line. However, when I type ruby at the command line, it simply hangs. I know that I have ruby installed. Any ideas as to how to resolve this problem.

View 2 Replies


ADVERTISEMENT

Programming :: Ruby On Rails - Getting Started?

Jun 28, 2010

I'm going through the Beta version of "Agile Web Development with Rails - 4th Edition". But I'm having difficulty with initial configuration on my Gentoo box. I started like so, basically following the book:

Code:
$ rails testrails
$ cd testrails
$ script/generate controller Say hello goodbye

[Code]...

View 3 Replies View Related

Ubuntu Installation :: Can't Install Ruby On Rails / Solve This?

Mar 23, 2010

I'm trying to install ruby on rails on Ubuntu 9.10. I'm following the instructions on this site:
http://castilho.biz/blog/2009/11/05/...-karmic-koala/

However, when I try to install Rails I get an error code...

It seems like gem can't access http://gems.rubyforge.org/gems/rake-0.8.7.gem for some reason, but when I try to go directly to that address I get the option to download it. Any ideas how to get around this problem?

I'm thinking if I can somehow tell gem to look for the file locally I can download it and install rails that way.

View 3 Replies View Related

Programming :: BASH - Works On The Command Line, Hangs As A Script?

Jul 16, 2010

I'm writing a Bash script to take IPTC keywords from a text file and write them, via Exiv2, to several (first batch is 100) JPEG files in a single directory. The script has one while loop inside another while loop, both terminated, but I'm pretty sure that's not my problem. I think it's how I'm incrementing the "counter" variable, although it could also be the method of parsing the text lines from the file (using cut with delimiters that have worked fine in simpler scripts).

Here's the code as I've worked it up to this point.

Code:

And yes, "keywords" checks out in Crimson Editor, Emacs GUI and nano as an ASCII file with UNIX line endings. No issues on that score.

Feeding each line consecutively into a terminal (excepting the exiv2 command) works fine: each variable echoes with the part of the text line used as a variable value as it should, even when the b variable is incremented the quick&dirty way (up arrow three commands and hit enter).

Running the above script in eval mode (sh -x) stalls after setting the b variable to one and reading in the first line of text. I'd like to know why. I'd also like some advice on another reliable method of parsing the read-in lines.

View 14 Replies View Related

Red Hat :: Turning Ruby On Rails Ubuntu Command Into Redhat Command

Dec 2, 2008

I'm the noobiest noob you'll find on here. I'm having trouble getting ruby on rails to work with mysql on redhat. So on their forum I asked how to install the latest "sqlite" database package on linux.They told me to run.Now, I don't think I need "sudo" because I am the root user on my database, and I don't think I can use "apt-get" because I'm using redhat, not ubuntu.

1) Is there a way of running the above command on redhat? (A redhat command for installing things?)

2) How can I be sure I'm using redhat and not some other OS?

View 1 Replies View Related

Ubuntu Multimedia :: Rubyripper - Lucid Ruby 1.8 / 1.9 / Libgtk2-ruby?

Apr 26, 2010

I've been using rubyripper quite happily on Karmic, now I've moved to Lucid and discovered a bit of an issue. rubyripper will pause for several minutes between tracks with ruby 1.8. If I upgrade to ruby 1.9.1 the gui client won't run due to an issue with libgtk2-ruby not being available for 1.9.1.

The cli version of rubyripper under 1.9.1 is blazingly fast, so that is what I'm using at the moment, but I do prefer the gui.

Anyone have any insight into this? Googling suggests there may be a bug in ruby 1.8.7 that caused the long pauses, but it was supposed to have been fixed in 1.8.7.249 i.e. the default Lucid version.

View 8 Replies View Related

Programming :: [OSX] Shell Hangs / Get Started It?

Jan 14, 2010

When I start my shell it hangs (somehow, it's being put to sleep) and I always have to control-cancel the shell before using it. Anyone know of a way to figure out what gets started on a typical shell session?

View 1 Replies View Related

Software :: Interactive Ruby Shell - Irb - Have Ruby But No Irb?

Oct 22, 2010

There are a few things not working properly. Ruby version manager seems ok but untill i get working with ruby i don't know if it is working properly. One thing that is not there is irb Interactive ruby is not available according the the message i get.

Well i have no idea what readline is but i did everything that is on that webpage referance page [url]. I have got a lot of progress and learned heaps about linux shell and bash terminal. The thing is i need to get this going and have tried feenode but it is very foreign and how it works i do not have a clue. I have got 2 things resolved so far through this forum but using other threads in it. i need to get irb going before i can progress to using ruby on Rails properly.

I am using a Eeepc running ubuntu easy peasy its version 9.04 of ubuntu. I need the whole of rails to work and want to get a handle on using ruby version manager along with the apache stack with mysql/phpmyadmin and am using this as a dummy run for setting up a development system.

View 2 Replies View Related

Ubuntu :: Lucid Boot Hangs For A While / Solve This?

May 2, 2010

I installed lucid the other day on my laptop, the first time it booted after installing it gave two error messages (unfortunately I can't remember what they said). The errors stopped appearing after that but once I select Ubuntu from the boot menu, it just hangs on a black screen for a good 15 seconds at the least before it runs the plymouth screen for like 2 seconds (the progress bar is already full) and then goes into the login screen. Here is my boot chart:

http://akgenome.com/files/bootchart.png

I was wondering if anyone can tell from that what is causing the issue and perhaps how to fix it? The boot log is like 3 lines long and is completely normal.

View 1 Replies View Related

Ubuntu Installation :: Apt-get Install Hangs / Solve This?

Apr 4, 2011

I have installed Ubuntu 64bit 10.04 LTS version. I am trying to install open-iscsi and my apt-get install commands hangs code...

my sources.list seems to be fine. What might be the issue?? never had this issue on a 32 bit version of Ubuntu 9.

View 1 Replies View Related

OpenSUSE :: ./configure Not Working - Ruby: Command Not Found

Sep 22, 2010

Maybe it's just the program i downloaded and maybe something's missing, but when I run ./configure I get the error: ./configure: line 4: ruby: command not found it told me to try cnf configure and it says no such file Is this me, suse or the program I downloaded? Something's wrong here.. Maybe ruby needs installed?

View 2 Replies View Related

Software :: Command For Installing Ruby Interpreter In Distro?

Jun 13, 2010

Would a representative from each Linux distro be kind enough to tell me what the command is for installing the Ruby interpreter in their distro? In Gentoo it is "emerge Ruby".

View 4 Replies View Related

Fedora :: Run Python3 Scripts From Command Line And Call Up Python 2.6.2 Idle With The Command Idle From Command Line?

May 29, 2010

i've gotten my fedora 12 to the point where i can run python3 scripts from command line and can call up python 2.6.2 idle with the command 'idle' from command line. what command will call up python3 (3.1.2 to be exact) idle?

View 5 Replies View Related

Fedora :: Kernel Update Hangs System During Boot / Solve It?

Sep 4, 2010

I have a problem with the kernel update to 2.6.34.6. Up until 2.6.33.x my system boots fine, but with this update the boot stops at the moment that the mouse cursor should become visible. To resolve the problem, I've gone back to 2.6.33.x and removed the 2.6.34 kernel but I wonder what happens with the next kernel update.
Anyone else having this problem?

View 8 Replies View Related

Ubuntu :: Computer Hangs At "Loading Operating System" / Solve This?

Aug 9, 2010

I just installed Ubuntu Lucid yesterday, and I'm dual-booting with Windows 7. (They're on separate physical drives if that's relevant.) I've discovered that whenever I restart the computer, it doesn't matter if it's from Windows or Ubuntu or just hitting the reset button, it hangs at "Loading Operating System." If I start it cold, though, it usually works fine. I tried Googling but I couldn't seem to find anybody else with this problem. I'm guessing it's a GRUB problem? Does anybody know how to fix it?

View 1 Replies View Related

Ubuntu :: Shutdown Hangs On "deactivating Swap" / Solve This?

Mar 7, 2010

Last night I shut down my computer and left, since it goes automatically after I tell it to shut down. This morning, my computer was still on, with some shutdown messages like "Stopping MySQL server mysqld" and such.
The last line said "deactivating swap..." and didn't appear to be doing anything. code...

View 6 Replies View Related

General :: "Booting" A Lxc Machine Hangs / Solve Without Removing Hardware Detection From Sequence?

Mar 1, 2010

When I try to "boot" a lxc (linux container) machine it hangs on hardware detection. Can this be solved without removing the hardware detection from the boot sequence?

View 1 Replies View Related

General :: Wrong Chown Command / Solve This?

Jun 29, 2010

I ran a command chown apache:apache / and just about everything... i wanted to do it on a directory but it did it on complete server.

i unable to login to phpmyadmin and even all the databses are empty. any tips on how can i solve this.

View 3 Replies View Related

Fedora :: Unable To Get Computer To Boot Under CUI And The Command 'start X' Started The GUI

Feb 17, 2010

I remember a friend of mine was able to get my computer to boot under CUI, and the command 'start x' started the GUI. with booting up my computer through CUI.

View 3 Replies View Related

Software :: Use Command Line To Split A Single-lined XML Into A Multi-line XML?

Dec 9, 2010

I have a many text files that have XML tags all shoved into 1 line. I want to create a new file that splits each XML tag onto a new line. code...

View 3 Replies View Related

General :: Command Line Way To View A Line Of A File With Context?

Feb 24, 2011

I'd like show a certain line or lines of a file with context, kind of like a unified diff, on the command line in Linux:

$ (something) -l 154 stuff.py
150: def foo(bar):
151: """

[code]....

View 5 Replies View Related

General :: Printing Command Line History Without Line Numbers?

Aug 22, 2011

How can I print Linux command line history without including the line numbers? I want to send it all to a text file like this:history >> history.txt

View 1 Replies View Related

Ubuntu :: System Boots In Command Promt / Solve This?

Nov 17, 2010

I just installed Ubuntu 10.4.1 through wubi and I cant boot in the GUI

I used startx and the screen goes black

I also used sudo dpkg-reconfigure -phigh xserver-xorg and it cant find xserver.xorg (used the - phigh one too)

What can I do to solve this?

View 2 Replies View Related

Ubuntu :: No Sound In KDE When Started By Startx While Working Fine When Started By Kdm/gdm

Dec 14, 2010

I recently installed KDE in my ubuntu 10.10. To access KDE, I want to use
startx /usr/bin/startkdeBut using it disables sound in KDE (Sound is working fine in GNOME). It doesn't sound for anything like login sound, totem, mplayer or any other playerBut when I press Alt+Ctrl+F1 to change to virtual console, the playback resumes from where it was in time and when coming back Alt+Ctrl+F7 and the time in totem (or any other player) doesn't move. While log out also it doesn't play logout sound and doesn't logout, so I have to press Ctrl+Alt+F1 so that logout sound play then it exits.When starting KDE by kdm or gdm, the sound works normally. But I don't want to login again using kdm or gdm and not to use root user to start kdm or gdm.I don't know what is the difference between when KDE is started by startx or by kdm/gdm where the same user login in kdm/gdm as that for startx

View 2 Replies View Related

Ubuntu :: Got Error "Minimal BASH-like Line Editing Is Supported" / Solve It?

Mar 2, 2011

I have a problem with the GRUB menu. When i open my computer it gives me error message " Minimal BASH-like line editing is supported.".I can't get passed that. So, it makes the computer unuseful. Windows 7 is not seen, neither Ubuntu. I am stuck at that screen. Before i was running dual-boot Windows 7 32-bit and Ubuntu 10.10.The GRUB version is GNU GRUB version 1.98+20100804-5ubuntu3I looked everywhere to get this fixed but i just cant seem to fix it!

View 4 Replies View Related

Programming :: Effect Of Using Eval To Execute A Command As Opposed To Writing It On The Command-line?

Jun 18, 2010

Code: cmd='date | wc'

$cmd If this script is executed, an error is generated. The reason written was that "The execution fails because the pipe is not expanded and is passed to date as an argument".What is meant by expansion of pipe. When we execute date | wc on the command line, it goes fine.then | is not treated as an argument. Why?

View 4 Replies View Related

General :: Ubuntu 10.10 And Command Line Scripts - Error - Android: Command Not Found

Mar 26, 2011

I know my way around MS Windows much better, but I just don't feel right trying to program something for Android on a Microsoft operating system. I am interested in Android programming so I followed the instructions on [URL] to install the environment on my computer...

I just installed the JDK, SDK, Eclipse successfully (or I assume):

* When I get to Step 4 where I'm supposed to run 'android' it will not run. I get the error message "android: command not found" (I am definitely in the right directory).

** When I double-click it in nautilus, it opens up in gedit. I can set the permissions in nautilus (through the properties - Allow executing file as a program) and get it to work,

My system:

Intel i7
Ubuntu 10.10 Maverick Meerkat
android-sdk-linux-x86
eclipse 3.6.2

View 5 Replies View Related

General :: Access The Dbxml From The Command Line And It Returns Command Not Found?

Apr 30, 2011

I installed the Berkeley DB on the Ubuntu server and tried to access the dbxml from the command line and it returns command not found

path/to/dir/dbxml-2.5.16/install/bin$dbxml
-bash" dbxml: command not found

Can someone point me in the right direction

View 1 Replies View Related

Software :: Command Line: Chown Command Recursively On Invisible Directories?

Oct 25, 2010

I tried

Code:

chown -R owner:group *

which does not work on the invisible directories (why?). When I used ".*" as wildcard it changed all (visible) files including the parent directory (the one I was currently working in which is the "dot") . I can change the invisible directories owner and group using dophin but how is it done from the command line?

View 9 Replies View Related

Ubuntu :: Is Command Line Invocation Of Gnome-terminal To Run More Than One Command

Feb 17, 2010

how to pass something more than a one-command startup for gnome-terminal. I will give an example of what I'm trying to do here:

Code:

#! /bin/bash
#
#TODO write this for gnome and xterm

[code]....

This same error occurs if the gnome-terminal line is changed to

Code:

gnome-terminal -e mcTerm

Is there any way to pass more than one command on to gnome-terminal? I have tried various single and double quoting senarios and in a final attempt, I abstracted to an exported function all to no avail. Perhaps even though gnome-term is better at many things than xterm, xterm trumps it in this instance.

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved