Note that there are some explanatory texts on larger screens.

plurals
  1. PONeo4j rake aborted! No such file or directory - wget http://dist.neo4j.org/neo4j-community-1.7-unix.tar.gz
    primarykey
    data
    text
    <p>Trying to install and run a simple Neo4j app from Max Demarzi's "d3_js_intro" app on GitHub. Issuing the command <code>rake neo4j:install</code>, I get the message shown below. Questions:</p> <ol> <li><strong>Q</strong>: What is the root cause of wget failing to get the file; a file that appears to exist in exactly the place expected? (Note: the URL following the error message "No such file or directory" is valid; that file exists there... so message is incorrect. Why?) <strong>A</strong>: the root cause was that wget is not installed on a Mac OSX machine. If you are running a Mac OSX machine, you too will need to install wget.</li> </ol> <p>I've tried:</p> <ol> <li>I've manually downloaded the file (<a href="http://dist.neo4j.org/neo4j-community-1.7-unix.tar.gz" rel="nofollow">http://dist.neo4j.org/neo4j-community-1.7-unix.tar.gz</a>) that the wget was failing to get.</li> <li>extracting the file to the app root directory.</li> </ol> <p>Questions related to manually recovering from this problem:</p> <ol> <li><strong>Q</strong>: Does the manually-extracted directory need to be named anything special? (i.e.: "Neo4j", "neo4j", etc.). <strong>A</strong>: It would have to be called "neo4j", but the fix (below) eliminates the need to do this.</li> <li><strong>Q</strong>: What configuration files would I need to modify (and how) in order to get the app to see the neo4j server? <strong>A</strong>: the fix below eliminates the need to deal with this.</li> </ol> <p>The gem files reads:</p> <pre><code>source 'http://rubygems.org' gem 'sinatra' gem 'neography' gem 'haml' gem 'json' group :test do gem 'rspec' gem 'rack-test' gem 'net-http-spy' end </code></pre> <p>The Rakefile reads:</p> <pre><code>require 'neography/tasks' require './d3.rb' namespace :neo4j do task :create do create_graph end end </code></pre> <p>Thanks for anything you can provide - HisHighnessDog</p> <pre><code>rake neo4j:install --trace ** Invoke neo4j:install (first_time) ** Execute neo4j:install Installing Neo4j-community-1.7 rake aborted! No such file or directory - wget http://dist.neo4j.org/neo4j-community-1.7-unix.tar.gz /Users/tomjones/.rvm/gems/ruby-1.9.3-p194/gems/neography-0.0.26/lib/neography/tasks.rb:44:in ``' /Users/tomjones/.rvm/gems/ruby-1.9.3-p194/gems/neography-0.0.26/lib/neography/tasks.rb:44:in `block (2 levels) in &lt;top (required)&gt;' ... ... /Users/tomjones/.rvm/gems/ruby-1.9.3-p194/gems/rake-0.9.2.2/lib/rake/application.rb:63:in `run' /Users/tomjones/.rvm/gems/ruby-1.9.3-p194/gems/rake-0.9.2.2/bin/rake:33:in `&lt;top (required)&gt;' /Users/tomjones/.rvm/gems/ruby-1.9.3-p194/bin/rake:23:in `load' /Users/tomjones/.rvm/gems/ruby-1.9.3-p194/bin/rake:23:in `&lt;main&gt;' Tasks: TOP =&gt; neo4j:install </code></pre> <h1>Should I be concerned that the Rakefile does not contain a task entry for 'install', while the command I'm running is <code>rake neo4j:install</code>?</h1> <p><strong>Solution</strong>: the root cause for the error message is that (OSX machine default): wget is not installed.</p> <p><strong>Recovery</strong>: Install and configure wget:</p> <ol> <li>curl -O <a href="http://ftp.gnu.org/gnu/wget/wget-1.14.tar.gz" rel="nofollow">http://ftp.gnu.org/gnu/wget/wget-1.14.tar.gz</a></li> <li>tar -xzvf wget-1.13.tar.gz</li> <li>cd wget-1.14</li> <li>./configure --with-ssl=openssl</li> <li>make</li> <li>sudo make install</li> <li>which wget (to confirm wget is now installed)</li> </ol> <p>Use the current wget download from gnu org's website.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload