ubuntu-8.04

'no such file to load — net/ssh' from rails Controller on Ubuntu

笑着哭i 提交于 2019-12-11 04:23:49
问题 I have a very simple controller: require 'net/ssh' class MyController < ApplicationController def foo render :text => 'bar' end end But when I request http://server:3000/my/foo I get: MissingSourceFile in MyController#foo no such file to load -- net/ssh The gem is installed > gem list net-ssh *** LOCAL GEMS *** net-ssh (2.0.11) Also, I tried require 'net/ssh' in IRB, and it works. MyController works fine on Windows, but fail on Ubuntu. What can be wrong? 回答1: This may help: Rails Gem

Undefined method `end_with?' for “no such file to load — Win32API”:String (NoMethodError)

天大地大妈咪最大 提交于 2019-12-08 05:41:38
问题 I'm just setting up a new server and want to install the Twitter gem but am running into problems on Ubuntu 8.04/Ruby 1.8.6 It says that "multi_json requires RubyGems >= 1.3.6", but running "gem update --system" obviously tries and updates to RubyGems 1.5 which can't be done on Ruby 1.8.6 and fails with the following error: undefined method `end_with?' for "no such file to load -- Win32API":String (NoMethodError) from ./lib/rubygems/config_file.rb:55 from ./lib/rubygems/custom_require.rb:29

Undefined method `end_with?' for “no such file to load — Win32API”:String (NoMethodError)

橙三吉。 提交于 2019-12-07 15:50:27
I'm just setting up a new server and want to install the Twitter gem but am running into problems on Ubuntu 8.04/Ruby 1.8.6 It says that "multi_json requires RubyGems >= 1.3.6", but running "gem update --system" obviously tries and updates to RubyGems 1.5 which can't be done on Ruby 1.8.6 and fails with the following error: undefined method `end_with?' for "no such file to load -- Win32API":String (NoMethodError) from ./lib/rubygems/config_file.rb:55 from ./lib/rubygems/custom_require.rb:29:in 'gem_original_require' from ./lib/rubygems/custom_require.rb:29:in 'require' ... Any ideas? Thanks

Too many open files error on Ubuntu 8.04

女生的网名这么多〃 提交于 2019-12-03 19:30:46
问题 mysqldump: Couldn't execute 'show fields from `tablename`': Out of resources when opening file './databasename/tablename#P#p125.MYD' (Errcode: 24) (23) on checking the error 24 on the shell it says >>perror 24 OS error code 24: Too many open files how do I solve this? 回答1: At first, to identify the certain user or group limits you have to do the following: root@ubuntu:~# sudo -u mysql bash mysql@ubuntu:~$ ulimit -a core file size (blocks, -c) 0 data seg size (kbytes, -d) unlimited scheduling

Can't update RVM - “fatal: Unable to find remote helper for 'http'”

我是研究僧i 提交于 2019-11-30 19:00:01
I'm running RVM 1.1.6 on Ubuntu 8.04 and all of a sudden I can't update to the latest version anymore. ~ rvm get head Original installed RVM version: rvm 1.1.6 by Wayne E. Seguin (wayneeseguin@gmail.com) [http://rvm.beginrescueend.com/] fatal: Unable to find remote helper for 'http' Installed RVM HEAD version: rvm 1.1.6 by Wayne E. Seguin (wayneeseguin@gmail.com) [http://rvm.beginrescueend.com/] Googling for "fatal: Unable to find remote helper for 'http'" just gave me a few results, it seems like earlier versions of Git didn't support HTTP, but my Git version is fairly recent. ~ git --version

Can't update RVM - “fatal: Unable to find remote helper for 'http'”

孤街醉人 提交于 2019-11-30 03:09:21
问题 I'm running RVM 1.1.6 on Ubuntu 8.04 and all of a sudden I can't update to the latest version anymore. ~ rvm get head Original installed RVM version: rvm 1.1.6 by Wayne E. Seguin (wayneeseguin@gmail.com) [http://rvm.beginrescueend.com/] fatal: Unable to find remote helper for 'http' Installed RVM HEAD version: rvm 1.1.6 by Wayne E. Seguin (wayneeseguin@gmail.com) [http://rvm.beginrescueend.com/] Googling for "fatal: Unable to find remote helper for 'http'" just gave me a few results, it seems

Where are my postgres *.conf files?

99封情书 提交于 2019-11-27 09:58:17
I have recently reinstalled postgresql 8.3 on my Ubuntu 8.04 after update. Used EnterpriseDB package. I can connect to the database locally, I see system DB postgres but I can't configure it because I can't find config files. Searched through entire hard drive and found only samples like pg_hba.conf.sample Where are the postgres *.conf files? Frank Heikens Or ask your database: $ psql -U postgres -c 'SHOW config_file' Ubuntu 13.04 installed using software centre : The location for mine is: /etc/postgresql/9.1/main/postgresql.conf Run sudo updatedb followed by locate postgresql.conf Where are

Where are my postgres *.conf files?

心已入冬 提交于 2019-11-26 08:39:27
问题 I have recently reinstalled postgresql 8.3 on my Ubuntu 8.04 after update. Used EnterpriseDB package. I can connect to the database locally, I see system DB postgres but I can\'t configure it because I can\'t find config files. Searched through entire hard drive and found only samples like pg_hba.conf.sample Where are the postgres *.conf files? 回答1: Or ask your database: $ psql -U postgres -c 'SHOW config_file' 回答2: Ubuntu 13.04 installed using software centre : The location for mine is: /etc