General :: How To Configure Installed Ruby And Gems
May 3, 2010My current gem env returns:
RubyGems Environment:
- RUBYGEMS VERSION: 1.3.6
- RUBY VERSION: 1.8.7 (2008-08-11 patchlevel 72) [x86_64-linux]
[code]....
My current gem env returns:
RubyGems Environment:
- RUBYGEMS VERSION: 1.3.6
- RUBY VERSION: 1.8.7 (2008-08-11 patchlevel 72) [x86_64-linux]
[code]....
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 RelatedI just installed it by following steps in [URL]
but when I run "msfconsole", I got the following error messages telling me that ruby-openssl is not installed. I installed it "apt-get install libopenssl-ruby" but same message still comes again. I'm running Ubuntu 9.10.
root@qa-ud910-32-1:/opt/metasploit3/msf3/external/ruby-lorcon2# msfconsole
*** The ruby-openssl library is not installed, many features will be disabled!
*** Examples: Meterpreter, SSL Sockets, SMB/NTLM Authentication, and more
[-] ***
[Code]....
I'm dual booting - windows7 and Ubuntu 11.04. I've found that I'm doing a lot less "dual'n" lately though. Compaq Presario Notebook. I've been installing new software and I've noticed that some of them are not showing up in the App list. I'm showing 92 when I've actually downloaded more. They aren't showing in the Installed Software either, but when I go into the center to make sure I did install it, it says installed. So, I'm guessing there is something simple I'm not familiar with yet to make these programs show up. I installed 7zip and couldn't find it either, however when I click on a zip file to unzip it, it does use this to unzip. I cannot find Ruby-full install or Docky. Plus several others.
View 5 Replies View RelatedI'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.
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.
what is the correct process for updating an application installed via the './configure, make, make install' sequence?For example, I have an app checked out via a git repository, on which I run the 'make install' on to install. Then a few days later I run a git pull to update to the latest release, do I just run the same sequence again or should I 'make uninstall' first?
View 3 Replies View Related(Using Archlinux) I downloaded Ruby 1.8.7-174 a while ago and installed it via the tarball (not pacman). I was trying to update to 1.8.7-299, but I can't get it to work. Per the readme, I do the following steps, all of which complete without error:
./configure
make
make install
After install finishes however, I still have -174 installed instead of -299.
It is little weird now that cron job is not working as i have set. I have set weekly job to send email but i am receiving multiple emails daily. Below is my code; # sends email every monday at 4:00 am 00 04 * * 1 /usr/bin/ruby /home/mbm/www/current/script/runner /home/mbm/www/current/app/models/add_to_delayed_job.rb -e production
00 -> Minutes
04 -> Hours (0-24)
1 -> Days / 0-6 / Sun - Sat
Sending email is fine but the time is not working so far as set.
Trying to understand my ruby folder structure? Why my gems are scattered all over and why they aren't recognised commands. I'll explain how my installation looks like first:
/usr/bin/ruby
/usr/bin/ruby1.8
/usr/bin/ruby1.9.1
The first is a soft link to ruby1.9.1 because the "ruby" command didn't work in the terminal. I did the same with "gem". I installed rubygems through downloading, extracting and then running setup.rb here: (I created the "ruby" folder)
/home/pc/ruby/rubygems-1.7.2/setup.rb
/usr/bin/gem
/usr/bin/gem1.8
/usr/bin/gem1.9.1
I installed a few gems with "sudo gem install"
> gem list
*** LOCAL GEMS ***
compass (0.10.6)
haml (3.0.25)
mustache (0.99.3)
rake (0.8.7)
So far so good? Well not quite, as it turns out the command "compass version" doesn't seem to exist. My confusion grows with each folder I look into. The following path doesn't make any sense to me, for example. Why would it be hidden? Why is mustache the only gem inside this folder?
/home/pc/.gem/ruby/1.9.1/cache/mustache-0.99.3.gem
First of all, here is "gem environment", which makes even less sense, because I have definately installed rubygems-1.7.2 like I told you in the first paragraph, but here it shows an ancient version 1.3.7. Why? I installed Ubuntu the day before yesterday.
RubyGems Environment:
- RUBYGEMS VERSION: 1.3.7
- RUBY VERSION: 1.9.2 (2010-08-18 patchlevel 0) [x86_64-linux]
- INSTALLATION DIRECTORY: /var/lib/gems/1.9.1
- RUBY EXECUTABLE: /usr/bin/ruby1.9.1
- EXECUTABLE DIRECTORY: /var/lib/gems/1.9.1/bin
- RUBYGEMS PLATFORMS: .....
Ruby --version returns "ruby 1.8.7"...........
Also, as it turns out, all gems are installed into this folder (mustache too! even though it already is inside the other folder), just as "ruby environment" claims:
/var/lib/gems/1.9.1/gems. But none of these gems work. I can't call any of these, except rake. So here is where I probably made the mistake, I think I used "apt-get install rake" in addition to "gem install rake", because the command "rake" wasn't recognised, and the command prompt suggested it. I may have done so with rubygems too... I'm new to Linux, and I figured that the command prompt knew how to install this stuff properly. It can't be normal that I have to create syslinks all over, right? In Windows I didn't run into this problem.
I am using Red Hat Enterprise Version 5. There is a ruby program which use standard input as its input (e.g. the Ruby program process input from standard input). I think standard input should be keyboard, correct?
So, I think other kinds of input (non-standard input) should not work (i.e. the ruby program should not be able to read input from such non-standard input), but actually I have tried using pipe works, I am so confused because I think pipe should be some other kinds of input -- other than standard input, why it could work? i.e. put text "123" in abc.txt with pipe, could achieve the same result as using keyboard as input to type "123" for the ruby program.
cat abc.txt | ~/test/rubysrc/foo.rb
Debian/Testing/XFCE4. I have xscreensaver installed but can find no way to set it up.
View 2 Replies View RelatedHPDL385 with dual raid controllers (8 disks each). During the install of the ISO, it sees the raid controllers individually. I tried "One Generic Drive" but it still only partitions one of the raid controllers.Is it possible after the OS is installed to configure the space as one logical volume?
View 3 Replies View Relatedhow to configure my customized Slim DM to overwrite the installed /etc/rc.d/rc.4 script with the one I put in my slim build from source.However, it just installs it as rc.4.new and not rc.4 why?would it be easier to instead configure the rc.4 that initially gets installed?if so, what slack pkg has the /etc/rc.d/* folder??I'm doing this with Absolute 13.0.8 install cd as its installed size is too big for my lappy hdd and it comes with both gdm and xdm and I want slim.
So, I removed many many pkgs from install iso, got it down to 370MB and only problem is after install my rc.4 is in /etc/rc.d but its named rc.4.new and there is also the original rc.4 thats my only issue
I am trying to build Pidgin on my Lucid install and on running configure, I get the following:
Quote:
configure: error: You must have GLib 2.4.0 or newer development headers installed to build.
If you have these installed already you may need to install pkg-config so I can find them. I tried installing pkg-config, but it's already in its newest version. I then tried going to the following website
[URL]
and downloaded and extracted glib on my computer. That changed nothing. I was hoping someone could tell me what's going on here. I just tried the this:
Quote:
sudo apt-get install libgtk2.0-0
and got
Quote:
libgtk2.0-0 is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Is there a way to install ruby on Fedora 14?
View 1 Replies View RelatedEverytime I tru to install that gem with gem install mysql I get this output :
[CODE]
Building native extensions. This could take a while...
ERROR: Error installing mysql:
ERROR: Failed to build gem native extension.
/usr/bin/ruby extconf.rb
checking for mysql_ssl_set()... no
[Code]...
I would like to install the rmagick gem under ruby ree-1.8.7. Like every time, the installation routine does complain about two different version being installed which are actually the same. I have every, really every imagemagick package installed:
Code:
ImageMagick-6.6.1.0-3.8.i586
GraphicsMagick-1.3.12-1.15.i586
libMagick++3-6.6.1.0-3.8.i586
libGraphicsMagick3-1.3.12-1.15.i586
[Code]...
Terminal, I type ruby, I hit enter, and nothing happens. I'm given a blank line that I can type and enter, and again, nothing happens. I'm stuck, is there a way to fix this without closing the terminal window?
View 1 Replies View RelatedWhat are some popular web applications that I've seen that use ruby?
View 1 Replies View RelatedI have the following code:
Code:
And it gives this error:
Code:
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]...
Has anyone been able to successfully install rmagick on slackware 13.1? On both my systems (one multilib and one 32-bit), it complains about having a 'partial' ImageMagick install!
Code:
$ sudo gem install rmagick
Building native extensions. This could take a while...
ERROR: Error installing rmagick:
ERROR: Failed to build gem native extension.
[Code]...
I've slackware 13.1 and anytime I try the following commands in irb:
Code:
require 'rubygems'
require 'Qt4'
or
Code:
require 'rubygems'
require 'plasma_applet'
i receive the following error:
LoadError: no such file to load -- Qt4
LoadError: no such file to load -- plasma_applet
now I'm wondering what packages or gems I need to make it work?
I have a problem installing mysql ruby gem on 64bit CentOS machine.
[jacekb@vitaidealn ~]$ uname -a
Linux vitaidealn.local 2.6.18-92.el5 #1 SMP Tue Jun 10 18:51:06 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux
I already got the source from here [url] i need ruby 1.8.7 because i want to install activerecord usually i use yum for installing anything. but for ruby,
Code:
Package ruby-1.8.6.399-6.fc13.i686 already installed and latest version
The site that used to host the language spec file for .erb/.rhtml for ruby/rails syntax highlighting is no more.If someone could attach the file for gtksourceview-2.It's located in /usr/share/gtksourceview-2.0/ language-specs/ and probably called rhtml.lang
View 2 Replies View RelatedI need to generate pdf documents programmatically using Ruby. i.e. I don't want a GUI interface but an API interface. The bulk of my document is text but there are images included as well. I've looked at this thread: [URL] and it's 2 main recommendations PDFEdit and ImageMagik. PDFEdit has scripting available but I can't get my head round how to call this using Ruby. ImageMagik has a number of Ruby wrappers and is the kind of thing I want but as far as I can tell it only deals with Images and my stuff is mainly text.
View 1 Replies View RelatedI want to try test ruby on rails application on a virtual ubuntu server. But I didn't work for me.
What did i tried Code code...
What do I wrong, rubygems still 1.3.5 and is not updated...
What must I do?
CentOS 5.4 (cPanel 11.25.0-R42213) I've used this guide several times on several servers to get FFMPEG`/FFMPEG-PHP to work with CentOS 5.2 and various hosting panels. But after trying on a server with CentOS 5.4, I've run into problems.
# Install FFMPEG on CentOS
cd /root
echo "[dag]" > /etc/yum.repos.d/dag.repo
echo "name=Dag RPM Repository for Red Hat Enterprise Linux" >> /etc/yum.repos.d/dag.repo
[code]....