Try to run this and then run nodeos again. You may have to restart your VM or similar in order for it to take effect.
export PATH=$PATH:/usr/local/eosio/bin
That looks ok. You should now have a genesis.json file in that directory. Try start nodeos with that file now according to the second nodeos command in the video.
Hi guys,
I had this error also, and found the same github issue.
I fixed the issue, by making minor changes to 2 scripts.
In my case, I’m running Linux Mint 18.3, and I already have MongoDB running on this box; not sure if that was causing the problem, or if that’s the case with you, but anyways…
Firstly, this all depends on the OS you are running, so open up the “eosio_build.sh” script and check the ‘case’ statement starting on line 137. This will tell you which specific script file is used for your os.
In my case (Linux Mint) this means look into the following file:
“scripts/eosio_build_ubuntu.sh”.
Specifically, line 314:
# if ! git clone https://github.com/mongodb/mongo-cxx-driver.git --branch releases/stable --depth 1
if ! git clone https://github.com/mongodb/mongo-cxx-driver.git --branch releases/v3.2 --depth 1
i.e. comment out the original line 314 which specifies the “stable” mongo driver and replace if with version “3.2”.
Not sure if this is related to the version of mongodb that I am already running (which is confusingly NOT v3.2), but at any rate it fixed the problem.
ALSO, I had to make one more modification in the following file:
“Docker/builder/Dockerfile”
Line 63:
# RUN git clone --depth 1 -b releases/stable git://github.com/mongodb/mongo-cxx-driver \
RUN git clone --depth 1 -b releases/v3.2 https://github.com/mongodb/mongo-cxx-driver \
i.e. similar to before: comment out the original line specifying “stable” mongo driver and specify version “3.2”.
After making these changes, running “eosio_build.sh” worked.
See the following link for more information:
Thanks for sharing you progress!
What’s the output if you write
echo $PATH
in the console?
Doesn’t seem like the Eos directory was added. Did you run this command?
export PATH=$PATH:/usr/local/eosio/bin
And if you did, did you restart the shell after that?
– Up-to-date: /usr/local/eosio/include/eosio/testing/tester_network.hpp
– Up-to-date: /usr/local/eosio/include/eosio/testing
– Up-to-date: /usr/local/eosio/bin/nodeos
– Up-to-date: /usr/local/eosio/var/log/eosio
– Up-to-date: /usr/local/eosio/var/lib/eosio
– Up-to-date: /usr/local/eosio/bin/cleos
– Up-to-date: /usr/local/eosio/bin/keosd
– Up-to-date: /usr/local/eosio/bin/eosio-launcher
– Up-to-date: /usr/local/eosio/bin/eosio-abigen
– Up-to-date: /usr/local/eosio/bin/eosiocpp
Kobes-MacBook-Pro:eos nanaadjapong$ nodeos nodeos -e -p eosio --genesis-json filipgen.json
-bash: nodeos: command not found
Kobes-MacBook-Pro:eos nanaadjapong$
Filip, Why is the command not found??
I answered the same question just a few posts up. Try to run this command and then run nodeos again. You may have to restart your VM or similar in order for it to take effect. I assume you ran the sudo make install.
export PATH=$PATH:/usr/local/eosio/bin
Kobes-MacBook-Pro:eos nanaadjapong$ nodeos --extract-genesis-json filipgen.json
2018-09-12T17:15:22.837 thread-0 chain_plugin.cpp:317 plugin_initialize ] initializing chain plugin
2018-09-12T17:15:22.837 thread-0 chain_plugin.cpp:419 plugin_initialize ] No blocks.log found at ‘/Users/nanaadjapong/Library/Application Support/eosio/nodeos/data/blocks/blocks.log’. Using default genesis state.
2018-09-12T17:15:22.839 thread-0 chain_plugin.cpp:434 plugin_initialize ] Saved genesis JSON to ‘/Users/nanaadjapong/Desktop/Udemy/EOS/eos/filipgen.json’
2018-09-12T17:15:22.839 thread-0 chain_plugin.cpp:632 plugin_initialize ] 3100005 extract_genesis_state_exception: Extracted genesis state from blocks.log
extracted genesis state from blocks.log
{}
thread-0 chain_plugin.cpp:437 plugin_initialize
Failed to initialize
Kobes-MacBook-Pro:eos nanaadjapong$
Failed to initialize
Please read the answers provided to your issues above before you post. I have already answered this to another student in just a couple of posts back.
I cvhecked , but i will check again
Just to help any one in the future if you get stuck
- try and restart your macbook
- use the export PATH cl that filip shared before any command
- now run nodeos…contract…
It started working after that command: export PATH=$PATH:/usr/local/eosio/bin;
but I got that error when wanted to create a wallet :
:[ same error here hopefully someone responds soon
It looks like you guys are using a newer version of Eos compared to the one I use in the videos. In order to create the wallet in this case you need to add the flag - - to-console.
But you will probably stumble upon more issues in the future videos since you are probably using a different version.