{"id":896,"date":"2017-04-09T03:12:00","date_gmt":"2017-04-09T03:12:00","guid":{"rendered":"http:\/\/www.talkcrypto.org\/blog\/?p=896"},"modified":"2017-04-09T05:04:37","modified_gmt":"2017-04-09T05:04:37","slug":"geth-attach-on-testnet-error","status":"publish","type":"post","link":"https:\/\/www.talkcrypto.org\/blog\/2017\/04\/09\/geth-attach-on-testnet-error\/","title":{"rendered":"geth attach on testnet error"},"content":{"rendered":"<p>If you are trying to run the command geth attach and you get this error<\/p>\n<pre>&gt; Fatal: Unable to attach to remote geth: dial unix \/Users\/&lt;username&gt;\/Library\/Ethereum\/geth.ipc: connect: no such file or directory<\/pre>\n<p>it is because geth cannot find the file geth.ipc. This typically happens when you have run geth &#8211;testnet. This file gets generated at run time.<\/p>\n<p>To fix this, run geth attach with the additional ipc command. ie<\/p>\n<pre>&gt; geth attach ipc:\/Users\/&lt;username&gt;\/Library\/Ethereum\/testnet\/geth.ipc<\/pre>\n<p>and that should do the trick!<\/p>\n<p><img fetchpriority=\"high\" decoding=\"async\" class=\"alignnone wp-image-897\" src=\"https:\/\/www.talkcrypto.org\/blog\/wp-content\/uploads\/2017\/04\/Screen-Shot-2017-04-09-at-3.07.06-PM-300x27.png\" alt=\"\" width=\"789\" height=\"71\" srcset=\"https:\/\/www.talkcrypto.org\/blog\/wp-content\/uploads\/2017\/04\/Screen-Shot-2017-04-09-at-3.07.06-PM-300x27.png 300w, https:\/\/www.talkcrypto.org\/blog\/wp-content\/uploads\/2017\/04\/Screen-Shot-2017-04-09-at-3.07.06-PM.png 708w\" sizes=\"(max-width: 789px) 100vw, 789px\" \/><\/p>\n<h3>Installing Solidity on OSX<\/h3>\n<p>If you are trying to install Solidity on OSX these are the commands you need to run.<\/p>\n<pre><span class=\"nx\">brew<\/span> <span class=\"nx\">update<\/span>\r\n<span class=\"nx\">brew<\/span> <span class=\"nx\">upgrade<\/span>\r\n<span class=\"nx\">brew<\/span> <span class=\"nx\">tap<\/span> <span class=\"nx\">ethereum<\/span><span class=\"o\">\/<\/span><span class=\"nx\">ethereum<\/span>\r\n<span class=\"nx\">brew<\/span> <span class=\"nx\">install<\/span> <span class=\"nx\">solidity<\/span>\r\n<span class=\"nx\">brew<\/span> <span class=\"nx\">linkapps<\/span> <span class=\"nx\">solidity<\/span><\/pre>\n<p>If you get this error:<\/p>\n<pre>==&gt; Installing solidity from ethereum\/ethereum\r\nError: You must `brew link cmake` before ethereum\/ethereum\/solidity can be installed<\/pre>\n<p>it means you need to run &#8220;brew link cmake&#8221; as instructed. If you run brew doctor you will find a similar reason.<\/p>\n<pre>Warning: You have unlinked kegs in your Cellar\r\nLeaving kegs unlinked can lead to build-trouble and cause brews that depend on\r\nthose kegs to fail to run properly once built. Run `brew link` on these:\r\n\u00a0 cmake<\/pre>\n<p>The tricky part is that when you run &#8220;brew link cmake&#8221; you might encounter this error:<\/p>\n<pre>Linking \/usr\/local\/Cellar\/cmake\/3.7.2_1... \r\nError: Could not symlink share\/emacs\/site-lisp\/cmake\r\n\/usr\/local\/share\/emacs\/site-lisp is not writable.<\/pre>\n<p>To fix this, run<\/p>\n<pre>sudo chown -R cloudnthings \/usr\/local\/share\/emacs\/site-lisp\/\r\nsudo chmod -R u+w \/usr\/local\/share\/emacs\/site-lisp\/<\/pre>\n<p>This should then result in:<\/p>\n<pre>cloudnthings:~ cloudnthings$ brew link cmake\r\nLinking \/usr\/local\/Cellar\/cmake\/3.7.2_1... 28 symlinks created<\/pre>\n<p>Success!<\/p>\n<p>References:<\/p>\n<ul>\n<li>http:\/\/stackoverflow.com\/questions\/16844826\/error-when-trying-to-brew-link-autoconf<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you are trying to run the command geth attach<\/p>\n","protected":false},"author":1,"featured_media":902,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-896","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ethereum"],"featured_image_urls":{"full":["https:\/\/www.talkcrypto.org\/blog\/wp-content\/uploads\/2017\/04\/geth.jpg",300,161,false],"thumbnail":["https:\/\/www.talkcrypto.org\/blog\/wp-content\/uploads\/2017\/04\/geth-150x150.jpg",150,150,true],"medium":["https:\/\/www.talkcrypto.org\/blog\/wp-content\/uploads\/2017\/04\/geth-300x161.jpg",300,161,true],"medium_large":["https:\/\/www.talkcrypto.org\/blog\/wp-content\/uploads\/2017\/04\/geth.jpg",300,161,false],"large":["https:\/\/www.talkcrypto.org\/blog\/wp-content\/uploads\/2017\/04\/geth.jpg",300,161,false],"1536x1536":["https:\/\/www.talkcrypto.org\/blog\/wp-content\/uploads\/2017\/04\/geth.jpg",300,161,false],"2048x2048":["https:\/\/www.talkcrypto.org\/blog\/wp-content\/uploads\/2017\/04\/geth.jpg",300,161,false],"chromenews-featured":["https:\/\/www.talkcrypto.org\/blog\/wp-content\/uploads\/2017\/04\/geth.jpg",300,161,false],"chromenews-large":["https:\/\/www.talkcrypto.org\/blog\/wp-content\/uploads\/2017\/04\/geth.jpg",300,161,false],"chromenews-medium":["https:\/\/www.talkcrypto.org\/blog\/wp-content\/uploads\/2017\/04\/geth.jpg",300,161,false]},"author_info":{"info":["seandotau"]},"category_info":"<a href=\"https:\/\/www.talkcrypto.org\/blog\/category\/ethereum\/\" rel=\"category tag\">Ethereum<\/a>","tag_info":"Ethereum","comment_count":"0","_links":{"self":[{"href":"https:\/\/www.talkcrypto.org\/blog\/wp-json\/wp\/v2\/posts\/896","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.talkcrypto.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.talkcrypto.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.talkcrypto.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.talkcrypto.org\/blog\/wp-json\/wp\/v2\/comments?post=896"}],"version-history":[{"count":6,"href":"https:\/\/www.talkcrypto.org\/blog\/wp-json\/wp\/v2\/posts\/896\/revisions"}],"predecessor-version":[{"id":904,"href":"https:\/\/www.talkcrypto.org\/blog\/wp-json\/wp\/v2\/posts\/896\/revisions\/904"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.talkcrypto.org\/blog\/wp-json\/wp\/v2\/media\/902"}],"wp:attachment":[{"href":"https:\/\/www.talkcrypto.org\/blog\/wp-json\/wp\/v2\/media?parent=896"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.talkcrypto.org\/blog\/wp-json\/wp\/v2\/categories?post=896"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.talkcrypto.org\/blog\/wp-json\/wp\/v2\/tags?post=896"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}