Cannot run neo4j-shell from terminal (community edition 3.3.0 on mac)

2,240 views
Skip to first unread message

Greg Asman

unread,
Dec 4, 2017, 5:54:08 AM12/4/17
to Neo4j
Hello,

I'm new to Neo4j and have been trying to follow some examples.  Many reference loading CSV files using neo4j-shell.  When I run it I get "No such file or directory".  I'm not sure where it would be located.

I've loaded the Community Edition v3.3.0 on a Mac.  I've also tried Desktop edition and using the terminal prompt through that without success.  Lastly, I tried doing it with a Homebrew install but got errors again, not to mention I have no idea where Homebrew was putting anything.

Is there any way to get this working?  I'm really stuck on something that seems like it would be trivial.  I've looked at other posts here and on Stack Overflow but nothing worked for me.

Thanks in advance for your help!
Greg 

Michael Hunger

unread,
Dec 4, 2017, 5:57:47 AM12/4/17
to ne...@googlegroups.com
Hi Greg,

What was the issue with neo4j-desktop?
If you go to Terminal, and run bin/cypher-shell it should work, cypher-shell is the successor to neo4j-shell.

You can still use neo4j-shell but you'll have to enable the server side in the Neo4j config.

HTH Michael


--
You received this message because you are subscribed to the Google Groups "Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Greg Asman

unread,
Dec 4, 2017, 7:22:23 AM12/4/17
to Neo4j
Michael,

Thanks for your note.  In all the tutorials I've seen, neo4j-shell is referenced, not cypher-shell.  That said, I reinstalled Desktop and was able to get it working in the built-in terminal by entering 
./bin/cypher-shell

However, I'd much prefer to run Community Edition or something else that give me full control over where the databases are saved on my system.  Additionally, I don't care for the small terminal window of Desktop.  I also like to use my enhanced terminal.  How can I enable cypher-shell with other versions?  I downloaded the cypher-shell zip file but it won't run, either.  I get either command not found or no such file or directory messages doing all the usual start up commands.

Thanks,
Greg
To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+un...@googlegroups.com.

Michael Hunger

unread,
Dec 4, 2017, 8:13:09 AM12/4/17
to ne...@googlegroups.com
What was the issue running cypher-shell from the zip?

If you download this release: 

Unzip and run the shell script.

You can also download and use the tar.gz version of Neo4j that you can fully control.



To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+unsubscribe@googlegroups.com.

Greg Asman

unread,
Dec 4, 2017, 9:18:28 AM12/4/17
to Neo4j
I tried, but it came back with command not found or no such file or directory.  Are there specific instructions for running it?

Michael Hunger

unread,
Dec 4, 2017, 3:58:03 PM12/4/17
to ne...@googlegroups.com
At least this works for me:

unzip  cypher-shell.zip
cd cypher-shell

./cypher-shell -a bolt://localhost:7687 -u neo4j


Cheers, Michael




To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages