Tagged Questions
Ruby is a dynamic, reflective, general-purpose object-oriented programming language that combines syntax inspired by Perl with Smalltalk-like features.
0
votes
0answers
27 views
+300
Permission error when creating backup on gitlab omnibus installation
I am using gitlab version 7.10.4 and I am trying to upgrade the installation. But I am getting this when I tried to create back up
gitlab-rake gitlab:backup:create
Errno::EPERM: Operation not ...
1
vote
1answer
26 views
Redirecting stderr of a Ruby script not working as expected
I have a command that I think is outputting to stderr because when I redirect stdout to /dev/null I still get output printed to the screen.
However, when I redirect stderr to /dev/null I also get ...
0
votes
0answers
11 views
Error installing the rmagick gem in Ruby 1.8.6 rvm - “checking for InitializeMagick() in -lMagick… no”
I have an old Rails app I maintain which uses Ruby 1.8.6. I'm trying to get a new install of Linux Mint 18 up and running so I can develop for the app. I managed to install the same (almost) version ...
1
vote
1answer
74 views
Service Start Issue Systemd
I have configured a dradis.service file in /lib/systemd/system, it is called dradis.service. And it is its content:
[Unit]
Description=Dradis web application
[Install]
WantedBy=multi-user.target
[...
0
votes
0answers
37 views
How to set environment in supervisor?
i try set supervisor. If i start supervisor from user "deploy" then my program use ruby from environment deploy. If i start supervisord from another user that my program use incorrect environment. My ...
3
votes
1answer
97 views
Is there man command for bundle?
There is a command bundle in ruby.
I want use man command or similar function for bundle. Does it exist?
If there is it, I want to know how to look for separated command like bundle gem.
I can see ...
-3
votes
2answers
181 views
Kali linux : unable to “make” airdrop-ng / lorcon / pylorcon2
here is what I'm trying to do
cd lorcon
./configure --libdir=/usr/lib
make
make install
cd pylorcon2
python setup.py build
python setup.py install
cd ../ruby-lorcon/
ruby extconf.rb
make
make ...
0
votes
0answers
74 views
Howto upgrade ruby on a Ubuntu 14.04.2 (Trusty) on a Raspberry Pi 2 (armhf architecture)
I need to install json via
# gem install json --no-rdoc --no-ri
but I get as result
ERROR: Error installing json:
json requires Ruby version ~> 2.0.
I use Ubuntu Trusty (this image) and ...
2
votes
0answers
120 views
x64_mingw not a valid platform - Rails 5
Bluehost Shared Server
ruby -v 2.2.2
rails -v 5.0.0.1
gem -v 2.4.5
~/.bashrc
export HPATH=$HOME
export GEM_HOME=$HPATH/ruby/gems
export GEM_PATH=$GEM_HOME:/lib64/ruby/gems/1.9.3
export GEM_CACHE=$...
1
vote
0answers
61 views
Metasploit ruby “bad interpreter: Permission denied”
When I'm typing in my terminal msfconsole I got something like this:
bash: /usr/bin/msfconsole: /usr/share/metasploit-framework/ruby: bad interpreter: Permission denied
ls -l /usr/share/metasploit-...
1
vote
1answer
56 views
Proxychains DNS error but not with ping
I'm having a weird issue with proxychains. I set up the DNS server to be 8.8.8.8 (Google), and I have a valid proxy in the configuration. When I ping google using proxychains, it pings normally. But ...
0
votes
2answers
527 views
Unable to install libyaml-devel libffi-devel in CentOS
I am trying to install latest of ruby through RVM. I could not install install as it requires libyaml-devel and libffi-dev. When ever i try to install them i get error that no package found
[root@dev ...
0
votes
0answers
22 views
SSL error with rvm and ruby 2.2.2
I am getting the below error while doing a api call from one app to another:
SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed
We are using using rvm ...
3
votes
2answers
197 views
Can you tell if a file has been renamed?
Many tools out there for syncing files aren't quite right for syncing you're home directory. Because of this, and to learn Ruby, I've been working on my own sync tool.
An issue I've encountered, ...
1
vote
0answers
49 views
Sudden problem with a rack/passenger ruby app: “Connection closed”
I have a Ruby 1.8.7 app which runs under Phusion Passenger and Nginx, for one of my clients, on an Ubuntu VPS. It's been ticking away happily for years, but yesterday ran out of log space (sending me ...
2
votes
1answer
84 views
How can I launch irb from a bash script, execute some commands, then pass the irb session to the console?
I am creating a ruby gem and to speed my testing I wrote a script to build and install my gem, then to open irb for me to manually poke around.
How can I run the following ruby commands before ...
1
vote
2answers
799 views
CentOS: How to install libyaml-devel from source?
I'm trying to install RVM in a CentOS server which for some weird reason I do not have access to internet.
One of its dependencies is the library libyaml-devel.
I already installed the libyaml ...
0
votes
1answer
600 views
Error installing nokogiri: ERROR: Failed to build gem native extensions
I can build my rails application on my mac
On my Ubuntu machine when I bundle I get errors with a bunch of gems including nokogiri, version 1.6.7.2
Error installing nokogiri: ERROR: Failed to build ...
1
vote
1answer
877 views
How do I start Unicorn using systemd/systemctl?
I've wrote a systemd file for systemctl to start unicorn:
[Unit]
Description=Unicorn server
[Service]
SyslogIdentifier=my-app-unicorn
User=deployer
PIDFile=/tmp/unicorn.my-app.pid
WorkingDirectory=/...
1
vote
1answer
59 views
users resource in Puppet not updating /etc/shadow
I have written a manifests using users resource as shown below
node 'node2.example.com','node3.example.com'{
user {
'ash':
ensure => 'present',
managehome => 'true',
comment => '...
5
votes
1answer
173 views
Why doesn't rate limiting with trickle work with ruby?
I'm attempting to limit the bandwidth available to a running ruby process to prevent it flooding our link and affecting other traffic. The process is downloading large files over HTTP.
I've found ...
0
votes
0answers
234 views
can't `yum install ruby-augeas` on centos6.7
I have a problem installing ruby-augeas gem. (reason behind this, is so I can install stackstorm... which stops its install due to this)
Following the errors/logs, it appears I need to downgrade(!) ...
0
votes
0answers
408 views
Where in CentOS 7 should I install Ruby?
I am installing Ruby and rbenv on a CentOS 7 by following the instructions in this tutorial, with modifications. One of the recommended lines of code is cd followed by git clone commands. I assume ...
3
votes
1answer
262 views
Can using chcon to essentially bypass selinux be less secure than setting selinux to permissive?
I was wondering if it is possible to make a CentOS 7 server less secure by using chcon than it would be if SELinux were in Permissive mode. I am essentially trying to set up Phusion Passenger with ...
0
votes
1answer
49 views
Ruby with Tk in Gentoo
How to emerge Ruby with tk/tcl support in Gentoo Linux. I've tried USE="tk" emerge ruby, but it didn't work. Furthermore there is no tk use flag according "https://packages.gentoo.org/packages/dev-...
0
votes
2answers
499 views
Ruby gems not recognized in bash script
I have built a node.js app that listens for webhooks. Currently it is used to build a jekyll website.
I have configured it on my server and jekyll build works perfectly when I run it in the root of ...
3
votes
2answers
4k views
`ERROR: Failed to build gem native extension` while trying to install compass
I am using Ubuntu 14.04
I tried this command sudo gem install compass and it gave me this error:
Fetching: multi_json-1.11.2.gem (100%)
Fetching: compass-core-1.0.3.gem (100%)
Fetching: compass-...
0
votes
1answer
362 views
“ruby: Command not found” on FreeBSD, despite having installed it
I just tried to run a ruby script on a FreeBSD box I hadn't used in a while, and got "ruby: Command not found." So I figured I just hadn't previously installed it. Went to /usr/ports/lang/ruby22 and ...
0
votes
1answer
691 views
Puppet Master: TCPServer Error: Address already in use - bind(2) - WEBrick 1.3.1
I rebooted Puppet Master several times but always this error
[root@puppet-master04 ~]# service httpd restart
Stopping httpd: [ OK ]
Starting httpd: ...
1
vote
0answers
345 views
Issues Installing Ruby without sudo
I am migrating a website to a server that is running Ubuntu 14.04.2 LTS, the website is managed through git and built using Jekyll. Jekyll is installed as ruby gem and unfortunately the server does ...
1
vote
0answers
144 views
installed font not working in ec2 in rails app
I have downloaded font by running
wget http://www.fontsquirrel.com/fonts/download/amatic
inside my ec2 instance. Then I created a .fonts director and unzipped those files inside it. Then I ls ....
2
votes
4answers
120 views
Copy files to new directory only if name of file is in an array
I'm not much of a zsh buff but I imagine this should be an easy layup for someone:
I can bulk copy files from sourcedir to targetdir with the following:
$ find sourcedir -type f -exec cp {} ...
0
votes
1answer
88 views
SSH run command in users rbenv enviroment
Anyone know how to make ssh source the users enviroment?
ssh -Y -t old-dash '"bundle exec rails server"
bash: bundle exec rails server: command not found
Connection to old-dash closed.
one@...
2
votes
1answer
181 views
EACCESS err while installing thin
I am trying to install thin in linux mint 17. I have installed ruby via rvm . I have already install the thin gem. When I ran thin install I got this error
Installing thin service at /etc/init.d/...
0
votes
1answer
27 views
How can I check the ruby format for a bunch of files and/or 1 single file?
Most of them have a common pattern that is a filename of ..._rspec.rb
One of them is a filename without that ending (but does end in .rb)
How can I run ruby -wc (or in fact any operations such as ...
0
votes
2answers
139 views
Linux 'make' command fails after installing ruby and gems for biopieces
We wanted to try the biopieces tools, which require certain dependencies, such as ruby and perl, a.o.
After running the installers, and consequently installing some ruby gems, we were not able to run ...
1
vote
2answers
428 views
Remove lines from CSV file if the second column is in a word list
I have found a long list of free email providers that I want to remove from my email lists - https://gist.github.com/tbrianjones/5992856
Below are two commands I currently use that do the same job ...
-1
votes
1answer
7k views
How to install Ruby 2.0.0 in kali linux?
Currently i have version 1.9 of Ruby installed. I need to install arachni we scanner which requires version 2.0.0. or later.
How can i upgrade it to v 2.0.0?
0
votes
1answer
388 views
Subdomain Creation in Amazon EC2 using Nginx Server [closed]
I am using amazon ec2.... My app is written in Ruby on Rails. I am using Nginx Server. How can I create sub-domain and automate it when a user registers like http://user.mywebsite.com?
1
vote
0answers
1k views
How can I run script without root to sniff network (libpcap)?
I have a script (in ruby):
require 'ffi/pcap'
pcap = FFI::PCap::Live.new(:dev => "wlan0", :timeout => 1)
pcap.loop() do |this,pkt|
puts pkt.body
end
When I try to run the script , I get the ...
1
vote
1answer
1k views
Installing ruby 2.1 on Ubuntu 12.04 using ruby-install application
I've been through a couple of tutorials on how to install ruby 2.1.* My system currently has ruby 1.9.3 and I want the latest one. I'm following the following tutorial on how to install it from here: ...
2
votes
0answers
25 views
problems running brew
I have a macbook pro running OS X 10.10.1 with home-brew installed, but it is giving me some problems. When I tried to run brew doctor after having installed it I got the message.
/usr/local/bin/...
-2
votes
1answer
486 views
bash for loop to run ruby scripts
I'm trying to run several ruby scripts from the command line. Here is my code so far:
for i in {1..59}; do $("ruby sample$i.rb"); sleep 10; done
The purpose is to test all these scripts quickly, but ...
0
votes
1answer
710 views
`rvm list remote` not showing binaries for Ubuntu 14.04 box
I'm trying to provision a dev box with rvm on Ubuntu 14.04 (via Vagrant and Ansible). I've installed rvm:
gpg --keyserver hkp://keys.gnupg.net --recv-keys D39DC0E3
\curl -sSL https://get.rvm.io | ...
2
votes
2answers
134 views
How can I test for a file having a value?
I am using
source ~/.rvm/scripts/rvm
repos="repo_1_ruby_193 repo_2_ruby_211 repo_3_ruby_191"
> rvm_check.txt
for repo in $repos
do
cd ~/zipcar/$repo 2>rvm_check.txt
cd ..
echo $repo
if [...
0
votes
3answers
229 views
How to change installed ruby version
I am trying to run ruby on my RPi (Raspbian/Debian distro).
I have installed ruby with apt-get command, but it has installed 1.9. 3 version. I wanted newer one, so I removed that one and next, ...
3
votes
2answers
545 views
How to select unique array values?
I have an array and I want to get the unique 2nd members
bash doesn't really have 2-dimensional array so I've defined it this way, using :: as the separator of the two elements:
ruby_versions=(
'...
1
vote
1answer
171 views
How to wrap iptables commands around Ruby webrick server going up and down in a single command/script?
I would like to use this Ruby WEBrick server solution for on-demand showcasing of some random web pages. So I set up some forwarding exception on my adsl modem local web interface(192.168.2.1). Then ...
0
votes
1answer
130 views
Can we input or send any text to the daemon?
I have some upload/download ruby scripts; I want to run those scripts in daemon process. When I run ruby script on terminal, it ask for some input after that script start to execute. So now I want to ...
0
votes
1answer
763 views