I have a staging server from my client which has passenger(3.0.5 and 3.0.2) installed on it for an rails app(v=2.3.13), but when I start the server using passenger on the console it's getting updated to 3.0.5-x86_64-ruby1.8.7-linux-gcc4.4.3-1002. In my Gemfile I have mentioned
gem 'passenger', '=3.0.5'
Why is it getting updated?
Thanks in advance.
Here's the log....
when I run the command, **`**RAILS_ENV=staging passenger start**.`**
__________________________________________________________
Nginx core 0.8.54 isn't installed
Phusion Passenger Standalone will automatically install it into:
/var/lib/passenger-standalone/3.0.5-x86_64-ruby1.8.7-linux-gcc4.4.3-1002/nginx-0.8.54
This will only be done once. Please sit back and relax while installation is
in progress.
Checking for required software...
GNU C++ compiler... found at `/usr/bin/g++`
GNU make... found at `/usr/bin/make`
A download tool like 'wget' or 'curl'... found at /usr/bin/wget
Ruby development headers... found
OpenSSL support for Ruby... found
RubyGems... found
Rake... found at `/usr/local/bin/rake`
rack... found
Curl development headers with SSL support... found
OpenSSL development headers... found
Zlib development headers... found
file-tail... found
daemon_controller >= 0.2.5... found
Downloading Passenger binaries for your platform, if available...
Resolving standalone-binaries.modrails.com... 97.107.130.55
Connecting to standalone-binaries.modrails.com|97.107.130.55|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2013-10-09 08:52:00 ERROR 404: Not Found.
Looks like it's not. But don't worry, the necessary binaries will be compiled from source instead.
Downloading Nginx binaries for your platform, if available...
#
Resolving standalone-binaries.modrails.com... 97.107.130.55
Connecting to standalone-binaries.modrails.com|97.107.130.55|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2013-10-09 08:52:00 ERROR 404: Not Found.
Looks like it's not. But don't worry, the necessary binaries will be compiled from source instead.
Downloading Nginx...
# wget -O /tmp/root-passenger-standalone-21842/nginx-0.8.54.tar.gz http://nginx.org/download/nginx-0.8.54.tar.gz
--2013-10-09 08:52:00-- http://nginx.org/download/nginx-0.8.54.tar.gz
Resolving nginx.org... 206.251.255.63
Connecting to nginx.org|206.251.255.63|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 650001 (635K) [application/octet-stream]
Saving to: '/tmp/root-passenger-standalone-21842/nginx-0.8.54.tar.gz'
100%
[======================================================================================================>] 650,001 788K/s in 0.8s
2013-10-09 08:52:01 (788 KB/s) - `/tmp/root-passenger-standalone-21842/nginx-0.8.54.tar.gz' saved [650001/650001]
Installing Phusion Passenger Standalone...
Related
Is there any way currently to install tiny_tds on a rails 7 app in Heroku on the latest stack? All the workarounds seem to be quite old / inoperable. I am trying to get an Azure MSSQL plugin up and running on Heroku.
I have been able to get the buildpack installed, but every time I use TDS (even making a connection via a heroku rails console), I get a timeout error. If I run the exact same command locally, it works.
client = TinyTds::Client.new host: '<host>.database.windows.net', database: "<database>",username: "<username>#<host>.database.windows.net",password: "<password>", port: 1433, azure: tr
ue, tds_version: 7.4, timeout: 300, login_timeout: 300
Adaptive Server connection timed out ([server].database.windows.net:1433)
Additionally, I can run the following successfully on a heroku bash prompt:
~ $ nslookup
> <host>.database.windows.net
Server: <server ip address>
Address: <server ip address>#53
Non-authoritative answer:
<host>.database.windows.net canonical name = <other host name>.eastus.database.windows.net.
<other host name>.eastus.database.windows.net canonical name = <other host name>.trafficmanager.net.
<other host name>.trafficmanager.net canonical name = <another host name>.control.database.windows.net.
Name: <another host name>.control.database.windows.net
Address: <ip address>
~ $ nc -zv <host>.database.windows.net 1433
Connection to <host>.database.windows.net (<ip address>) 1433 port [tcp/ms-sql-s] succeeded!
I have also tried using freetds on heroku (which is required for tinytds) and get timeouts, so I believe the error traces back to freetds' interaction with heroku or the heroku buildpack, of which I have tried a variety of versions (https://github.com/rails-sqlserver/heroku-buildpack-freetds):
On my local macbook, I can run the freetds tsql connection command to connect almost instantaneously to a variety of mssql databases (one on ec2 and two on azure), but the same command times out on heroku bash prompt:
~ $ tsql -H ***.rds.amazonaws.com -p 1433 -U *** -P ***
locale is "en_US.UTF-8"
locale charset is "UTF-8"
using default charset "UTF-8"
103Error 20002 (severity 9):
Adaptive Server connection failed
Error 20002 (severity 9):
Adaptive Server connection failed
There was a problem connecting to the server
FreeTDS version local and remote. I did no special "configuration" file settings other than setting the TDS_VERSION to 7.3 when installing the buildpack on heroku.
# LOCAL:
$ tsql -C
Compile-time settings (established with the "configure" script)
Version: freetds v1.3.13
freetds.conf directory: /opt/homebrew/etc
MS db-lib source compatibility: no
Sybase binary compatibility: yes
Thread safety: yes
iconv library: yes
TDS version: 7.3
iODBC: no
unixodbc: yes
SSPI "trusted" logins: no
Kerberos: yes
OpenSSL: yes
GnuTLS: no
MARS: yes
# Heroku:
$ heroku run bash -a <app>
Running bash on ⬢ <app>... up, run.4557 (Hobby)
~ $ tsql -C
Compile-time settings (established with the "configure" script)
Version: freetds v1.3.13
freetds.conf directory: /app/freetds/etc
MS db-lib source compatibility: no
Sybase binary compatibility: no
Thread safety: yes
iconv library: yes
TDS version: 7.3
iODBC: no
unixodbc: no
SSPI "trusted" logins: no
Kerberos: no
OpenSSL: yes
GnuTLS: no
MARS: yes
Any ideas would be greatly appreciated!
This was due to a TLS/openssl compatibility issue. Using gnutls fixes the issue for now.
Some other notes on the issue:
https://github.com/FreeTDS/freetds/issues/336
https://github.com/FreeTDS/freetds/issues/299
If you need to use freetds on heroku-22, see this pull request.
https://github.com/rails-sqlserver/heroku-buildpack-freetds/pull/20
Many thanks to #engineersmnky for some great questions that led to discovering this answer.
RUTOS SDK (teltonika) requires the download of libsmpp34 from openwrt repositories, but none of them contain it.
Should I get it elsewhere ?
Traces below:
wget --tries=5 --timeout=20 --no-check-certificate --output-document=- https://sources.cdn.openwrt.org/libsmpp34-1.14.1.tar.xz --2022-07-04 14:38:15-- https://sources.cdn.openwrt.org/libsmpp34-1.14.1.tar.xz Resolving sources.cdn.openwrt.org (sources.cdn.openwrt.org)... 151.101.122.132, 151.101.2.132, 151.101.66.132, ... Connecting to sources.cdn.openwrt.org (sources.cdn.openwrt.org)|151.101.122.132|:443... connected. HTTP request sent, awaiting response... 404 Not Found 2022-07-04 14:38:16 ERROR 404: Not Found.
Open /package/libs/libsmpp34/Makefile and change the line from:
PKG_SOURCE_URL=git://git.osmocom.org/libsmpp34.git
to
PKG_SOURCE_URL=https://git.osmocom.org/libsmpp34
Hello guys in my project I have the JID of sender and receiver and the body of the message. I need to send the message without using any chat client, hence I am using mod_rest so that I can access mod_admin_extra. I configured it with Ejabberd server 14.05 and tried to run the following rest call
[root#centos ~]# wget localhost:5280/rest/ --server-response --post-data 'registered_users localhost'
--2016-06-20 17:03:33-- http://localhost:5280/rest/
Connecting to <<proxy ip>>... connected.
Proxy request sent, awaiting response...
HTTP/1.0 200 OK
Content-Type: text/html; charset=utf-8
Content-Length: 1015
Connection: close
Date: Mon, 20 Jun 2016 11:33:33 GMT
Length: 1015 [text/html]
Saving to: “index.html.3”
Where index.html.3 had the following message,
Problem 'error function_clause' occurred executing the command.
Stacktrace: [{ejabberd_commands,'-check_access_commands/5-fun-0-',
[{rest,[{registered_users,[all]},{connected_users,[all]}]}],
[{file,"src/ejabberd_commands.erl"},{line,372}]},
{lists,'-filter/2-lc$^0/1-0-',2,[{file,"lists.erl"},{line,1284}]},
{ejabberd_commands,check_access_commands,5,
[{file,"src/ejabberd_commands.erl"},{line,371}]},
{ejabberd_commands,execute_command,4,
[{file,"src/ejabberd_commands.erl"},{line,308}]},
{ejabberd_ctl,call_command,3,
[{file,"src/ejabberd_ctl.erl"},{line,293}]},
{ejabberd_ctl,try_call_command,3,
[{file,"src/ejabberd_ctl.erl"},{line,269}]},
{ejabberd_ctl,process2,3,
[{file,"src/ejabberd_ctl.erl"},{line,218}]},
{mod_rest,maybe_post_request,3,
[{file,"src/mod_rest.erl"},{line,135}]}]
Mod_admin_extra is added in ejabberd configuration file.Is this an issue of command not been identified.If yes the please explain how to add mod_Admin_extra commands in ejabberdctl I am new to erlang so its quite difficult for me to debug hence any help would be beneficial for me and if you guys know any better approach to send message other than using mod_rest please do let me know
Thanks alot
I got the issue. The ejabberd_commands.hrl and mod_admin_extra modules of ejabberd 14.05 do not support the commands I needed. Hence I added newer version of both modules and it started working
You can even try with command send__message
After I install Rails and I run rails server for a cloned repository that runs on RoR I see:
Rails is not currently installed on this system. To get the latest version, simply type:
$ sudo gem install rails
You can then rerun your "rails" command.
Right before this I installed Rails which according to terminal was correctly installed.
The command I had run was sudo gem install rails -V. To which I get:
HEAD https://rubygems.org/latest_specs.4.8.gz
302 Moved Temporarily
HEAD https://s3.amazonaws.com/production.s3.rubygems.org/latest_specs.4.8.gz
200 OK
GET https://rubygems.org/latest_specs.4.8.gz
302 Moved Temporarily
GET https://s3.amazonaws.com/production.s3.rubygems.org/latest_specs.4.8.gz
200 OK
HEAD https://rubygems.org/specs.4.8.gz
302 Moved Temporarily
HEAD https://s3.amazonaws.com/production.s3.rubygems.org/specs.4.8.gz
200 OK
GET https://rubygems.org/specs.4.8.gz
302 Moved Temporarily
GET https://s3.amazonaws.com/production.s3.rubygems.org/specs.4.8.gz
200 OK
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/README.md
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/images/akshaysurve.jpg
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/images/belongs_to.png
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/images/book_icon.gif
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/images/bullet.gif
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/images/chapters_icon.gif
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/images/check_bullet.gif
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/images/credits_pic_blank.gif
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/images/csrf.png
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/images/edge_badge.png
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/images/favicon.ico
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/images/feature_tile.gif
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/images/footer_tile.gif
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/images/fxn.png
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/images/getting_started/challenge.png
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/images/getting_started/confirm_dialog.png
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/images/getting_started/forbidden_attributes_for_new_post.png
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/images/getting_started/form_with_errors.png
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/images/getting_started/index_action_with_edit_link.png
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/images/getting_started/new_post.png
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/images/getting_started/post_with_comments.png
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/images/getting_started/rails_welcome.png
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/images/getting_started/routing_error_no_controller.png
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/images/getting_started/routing_error_no_route_matches.png
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/images/getting_started/show_action_for_posts.png
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/images/getting_started/template_is_missing_posts_new.png
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/images/getting_started/undefined_method_post_path.png
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/images/getting_started/unknown_action_create_for_posts.png
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/images/getting_started/unknown_action_new_for_posts.png
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/images/grey_bullet.gif
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/images/habtm.png
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/images/has_many.png
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/images/has_many_through.png
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/images/has_one.png
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/images/has_one_through.png
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/images/header_backdrop.png
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/images/header_tile.gif
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/images/i18n/demo_html_safe.png
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/images/i18n/demo_localized_pirate.png
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/images/i18n/demo_translated_en.png
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/images/i18n/demo_translated_pirate.png
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/images/i18n/demo_translation_missing.png
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/images/i18n/demo_untranslated.png
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/images/icons/callouts/1.png
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/images/icons/callouts/10.png
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/images/icons/callouts/11.png
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/images/icons/callouts/12.png
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/images/icons/callouts/13.png
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/images/icons/callouts/14.png
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/images/icons/callouts/15.png
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/images/icons/callouts/2.png
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/images/icons/callouts/3.png
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/images/icons/callouts/4.png
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/images/icons/callouts/5.png
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/images/icons/callouts/6.png
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/images/icons/callouts/7.png
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/images/icons/callouts/8.png
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/images/icons/callouts/9.png
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/images/icons/caution.png
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/images/icons/example.png
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/images/icons/home.png
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/images/icons/important.png
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/images/icons/next.png
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/images/icons/note.png
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/images/icons/prev.png
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/images/icons/README
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/images/icons/tip.png
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/images/icons/up.png
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/images/icons/warning.png
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/images/jaimeiniesta.jpg
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/images/nav_arrow.gif
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/images/oscardelben.jpg
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/images/polymorphic.png
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/images/radar.png
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/images/rails4_features.png
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/images/rails_guides_kindle_cover.jpg
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/images/rails_guides_logo.gif
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/images/rails_logo_remix.gif
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/images/session_fixation.png
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/images/tab_grey.gif
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/images/tab_info.gif
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/images/tab_note.gif
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/images/tab_red.gif
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/images/tab_yellow.gif
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/images/tab_yellow.png
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/images/vijaydev.jpg
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/javascripts/guides.js
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/javascripts/jquery.min.js
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/javascripts/responsive-tables.js
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/javascripts/syntaxhighlighter/shBrushAppleScript.js
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/javascripts/syntaxhighlighter/shBrushAS3.js
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/javascripts/syntaxhighlighter/shBrushBash.js
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/javascripts/syntaxhighlighter/shBrushColdFusion.js
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/javascripts/syntaxhighlighter/shBrushCpp.js
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/javascripts/syntaxhighlighter/shBrushCSharp.js
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/javascripts/syntaxhighlighter/shBrushCss.js
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/javascripts/syntaxhighlighter/shBrushDelphi.js
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/javascripts/syntaxhighlighter/shBrushDiff.js
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/javascripts/syntaxhighlighter/shBrushErlang.js
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/javascripts/syntaxhighlighter/shBrushGroovy.js
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/javascripts/syntaxhighlighter/shBrushJava.js
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/javascripts/syntaxhighlighter/shBrushJavaFX.js
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/javascripts/syntaxhighlighter/shBrushJScript.js
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/javascripts/syntaxhighlighter/shBrushPerl.js
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/javascripts/syntaxhighlighter/shBrushPhp.js
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/javascripts/syntaxhighlighter/shBrushPlain.js
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/javascripts/syntaxhighlighter/shBrushPowerShell.js
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/javascripts/syntaxhighlighter/shBrushPython.js
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/javascripts/syntaxhighlighter/shBrushRuby.js
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/javascripts/syntaxhighlighter/shBrushSass.js
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/javascripts/syntaxhighlighter/shBrushScala.js
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/javascripts/syntaxhighlighter/shBrushSql.js
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/javascripts/syntaxhighlighter/shBrushVb.js
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/javascripts/syntaxhighlighter/shBrushXml.js
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/javascripts/syntaxhighlighter/shCore.js
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/stylesheets/fixes.css
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/stylesheets/kindle.css
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/stylesheets/main.css
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/stylesheets/print.css
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/stylesheets/reset.css
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/stylesheets/responsive-tables.css
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/stylesheets/style.css
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/stylesheets/syntaxhighlighter/shCore.css
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/stylesheets/syntaxhighlighter/shCoreDefault.css
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/stylesheets/syntaxhighlighter/shCoreDjango.css
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/stylesheets/syntaxhighlighter/shCoreEclipse.css
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/stylesheets/syntaxhighlighter/shCoreEmacs.css
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/stylesheets/syntaxhighlighter/shCoreFadeToGrey.css
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/stylesheets/syntaxhighlighter/shCoreMDUltra.css
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/stylesheets/syntaxhighlighter/shCoreMidnight.css
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/stylesheets/syntaxhighlighter/shCoreRDark.css
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/stylesheets/syntaxhighlighter/shThemeDefault.css
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/stylesheets/syntaxhighlighter/shThemeDjango.css
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/stylesheets/syntaxhighlighter/shThemeEclipse.css
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/stylesheets/syntaxhighlighter/shThemeEmacs.css
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/stylesheets/syntaxhighlighter/shThemeFadeToGrey.css
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/stylesheets/syntaxhighlighter/shThemeMDUltra.css
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/stylesheets/syntaxhighlighter/shThemeMidnight.css
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/stylesheets/syntaxhighlighter/shThemeRailsGuides.css
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/assets/stylesheets/syntaxhighlighter/shThemeRDark.css
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/bug_report_templates/action_controller_gem.rb
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/bug_report_templates/action_controller_master.rb
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/bug_report_templates/active_record_gem.rb
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/bug_report_templates/active_record_master.rb
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/CHANGELOG.md
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/code/getting_started/app/assets/javascripts/application.js
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/code/getting_started/app/assets/javascripts/comments.js.coffee
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/code/getting_started/app/assets/javascripts/posts.js.coffee
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/code/getting_started/app/assets/javascripts/welcome.js.coffee
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/code/getting_started/app/assets/stylesheets/application.css
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/code/getting_started/app/assets/stylesheets/comments.css.scss
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/code/getting_started/app/assets/stylesheets/posts.css.scss
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/code/getting_started/app/assets/stylesheets/welcome.css.scss
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/code/getting_started/app/controllers/application_controller.rb
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/code/getting_started/app/controllers/comments_controller.rb
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/code/getting_started/app/controllers/posts_controller.rb
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/code/getting_started/app/controllers/welcome_controller.rb
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/code/getting_started/app/helpers/application_helper.rb
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/code/getting_started/app/helpers/comments_helper.rb
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/code/getting_started/app/helpers/posts_helper.rb
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/code/getting_started/app/helpers/welcome_helper.rb
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/code/getting_started/app/models/comment.rb
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/code/getting_started/app/models/post.rb
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/code/getting_started/app/views/comments/_comment.html.erb
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/code/getting_started/app/views/comments/_form.html.erb
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/code/getting_started/app/views/layouts/application.html.erb
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/code/getting_started/app/views/posts/_form.html.erb
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/code/getting_started/app/views/posts/edit.html.erb
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/code/getting_started/app/views/posts/index.html.erb
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/code/getting_started/app/views/posts/new.html.erb
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/code/getting_started/app/views/posts/show.html.erb
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/code/getting_started/app/views/welcome/index.html.erb
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/code/getting_started/bin/bundle
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/code/getting_started/bin/rails
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/code/getting_started/bin/rake
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/code/getting_started/config/application.rb
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/code/getting_started/config/boot.rb
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/code/getting_started/config/database.yml
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/code/getting_started/config/environment.rb
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/code/getting_started/config/environments/development.rb
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/code/getting_started/config/environments/production.rb
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/code/getting_started/config/environments/test.rb
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/code/getting_started/config/initializers/backtrace_silencers.rb
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/code/getting_started/config/initializers/filter_parameter_logging.rb
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/code/getting_started/config/initializers/inflections.rb
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/code/getting_started/config/initializers/locale.rb
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/code/getting_started/config/initializers/mime_types.rb
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/code/getting_started/config/initializers/secret_token.rb
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/code/getting_started/config/initializers/session_store.rb
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/code/getting_started/config/initializers/wrap_parameters.rb
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/code/getting_started/config/locales/en.yml
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/code/getting_started/config/routes.rb
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/code/getting_started/config.ru
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/code/getting_started/db/migrate/20130122042648_create_posts.rb
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/code/getting_started/db/migrate/20130122045842_create_comments.rb
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/code/getting_started/db/schema.rb
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/code/getting_started/db/seeds.rb
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/code/getting_started/Gemfile
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/code/getting_started/Gemfile.lock
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/code/getting_started/public/404.html
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/code/getting_started/public/422.html
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/code/getting_started/public/500.html
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/code/getting_started/public/favicon.ico
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/code/getting_started/public/robots.txt
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/code/getting_started/Rakefile
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/code/getting_started/README.rdoc
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/code/getting_started/test/controllers/comments_controller_test.rb
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/code/getting_started/test/controllers/posts_controller_test.rb
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/code/getting_started/test/controllers/welcome_controller_test.rb
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/code/getting_started/test/fixtures/comments.yml
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/code/getting_started/test/fixtures/posts.yml
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/code/getting_started/test/helpers/comments_helper_test.rb
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/code/getting_started/test/helpers/posts_helper_test.rb
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/code/getting_started/test/helpers/welcome_helper_test.rb
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/code/getting_started/test/models/comment_test.rb
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/code/getting_started/test/models/post_test.rb
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/code/getting_started/test/test_helper.rb
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/rails_guides/generator.rb
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/rails_guides/helpers.rb
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/rails_guides/indexer.rb
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/rails_guides/kindle.rb
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/rails_guides/levenshtein.rb
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/rails_guides/markdown/renderer.rb
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/rails_guides/markdown.rb
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/rails_guides.rb
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/Rakefile
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/source/2_2_release_notes.md
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/source/2_3_release_notes.md
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/source/3_0_release_notes.md
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/source/3_1_release_notes.md
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/source/3_2_release_notes.md
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/source/4_0_release_notes.md
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/source/_license.html.erb
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/source/_welcome.html.erb
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/source/action_controller_overview.md
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/source/action_mailer_basics.md
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/source/action_view_overview.md
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/source/active_model_basics.md
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/source/active_record_basics.md
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/source/active_record_callbacks.md
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/source/active_record_querying.md
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/source/active_record_validations.md
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/source/active_support_core_extensions.md
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/source/active_support_instrumentation.md
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/source/api_documentation_guidelines.md
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/source/asset_pipeline.md
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/source/association_basics.md
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/source/caching_with_rails.md
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/source/command_line.md
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/source/configuring.md
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/source/contributing_to_ruby_on_rails.md
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/source/credits.html.erb
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/source/debugging_rails_applications.md
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/source/development_dependencies_install.md
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/source/documents.yaml
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/source/engines.md
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/source/form_helpers.md
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/source/generators.md
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/source/getting_started.md
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/source/i18n.md
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/source/index.html.erb
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/source/initialization.md
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/source/kindle/copyright.html.erb
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/source/kindle/KINDLE.md
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/source/kindle/layout.html.erb
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/source/kindle/rails_guides.opf.erb
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/source/kindle/toc.html.erb
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/source/kindle/toc.ncx.erb
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/source/kindle/welcome.html.erb
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/source/layout.html.erb
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/source/layouts_and_rendering.md
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/source/maintenance_policy.md
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/source/migrations.md
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/source/nested_model_forms.md
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/source/plugins.md
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/source/rails_application_templates.md
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/source/rails_on_rack.md
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/source/routing.md
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/source/ruby_on_rails_guides_guidelines.md
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/source/security.md
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/source/testing.md
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/source/upgrading_ruby_on_rails.md
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/source/working_with_javascript_in_rails.md
/usr/local/lib/ruby/gems/2.0.0/gems/rails-4.0.1/guides/w3c_validator.rb
Successfully installed rails-4.0.1
Parsing documentation for rails-4.0.1
Parsing sources...
100% [260/260] guides/w3c_validator.rb
Done installing documentation for rails after 2 seconds
1 gem installed
Where am I wrong? I have Ruby 2.0.0 installed on my machine.
Can you let us know what this returns?
which rails
You should see something like this:
/Users/<user>/.rvm/gems/ruby-2.0.0-p247/bin
I am assuming you just need to update your PATH with the path to rails.
Make sure that you have something like this at the end of your login script (bash_login, etc):
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
This will ensure rvm is in your path.
Do you have to use sudo to install rails? If not, I would try installing without sudo.
Ok, I sorted it out myself, though the tough way as the railsinstaller doesn't work with Mavericks. Firstly, I uninstalled both rvm and homebrew doing that I accidentally deleted the ruby folder from my /User/bin folder too which deleted the default ruby package.
Now, I downloaded the source code from ruby-lang decompressed it and did a
./configure
make test
make install
which installed the package correctly. Since it was rvm, homebrew and macport clashing, I moved out the macport and used brew to upgrade my ruby install and finally download rails via
gem install rails
Install xcode before installing rails on your mac.
I am trying to use SSL with MQTT and gets following error,
1379677998: Client connection from 127.0.0.1 failed: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number.
1379678058: OpenSSL Error: error:140940E5:SSL routines:SSL3_READ_BYTES:ssl handshake failure
1379678058: Socket read error on client (null), disconnecting.
My conf file has seetings as below,
port 8883
cafile /home/administrator/Downloads/mosquitto-1.2.1_dilip/test/ssl/test-root-ca.crt (also tried all-ca.crt here)
certfile /home/administrator/Downloads/mosquitto-1.2.1_dilip/test/ssl/server.crt
keyfile /home/administrator/Downloads/mosquitto-1.2.1_dilip/test/ssl/server.key
tls_version tlsv1
require_certificate true (tried commenting this too)
and I run, 08-ssl-connect-cert-auth.test from test folder. code snippet included below
mosquitto_tls_opts_set(mosq, 1, "tlsv1", NULL);
mosquitto_tls_set(mosq, "../ssl/test-root-ca.crt", "../ssl/certs", "../ssl/client.crt", "../ssl/client.key", NULL);
mosquitto_connect_callback_set(mosq, on_connect);
mosquitto_disconnect_callback_set(mosq, on_disconnect);
rc = mosquitto_connect(mosq, "localhost", 8883, 60);
Environment info:
Python 2.7.3
OpenSSL 1.0.1 14 Mar 2012
Description: Ubuntu 12.04.2 LTS
Release: 12.0
mosquitto-1.2.1/mosquitto-1.2
Please let me know what could go wrong here? I also tried generating certificates using gen.sh.
Thanks in advance.
-Dilip
On a general note - you should be generating your own certificates, don't use the ones provided by mosquitto for testing, or use the gen.sh script without modifying it for your own details.
To use the certificates provided, you should be using all-ca.crt in the broker. It contains the example root CA and intermediary CA certificates. The client only requires the root CA for verification purposes.
You are using a full path to the certificates in the broker configuration, but relative paths in the client. Are you sure that they are both correct?
Have you tried running the tests unmodified with make test? This would tell you if there is a problem with your openssl installation for example.