Linux newbie problem

  1. Started with : Ubuntu Server 18.04 LTS

  2. Downloaded Github project : https://github.com/algorand/go-algorand-doc

  3. Completed step by step instructions from : https://developer.algorand.org/docs/installing-ubuntu

Continue to Start your node : https://developer.algorand.org/docs/introduction-installing-node#start-node

I get error directly
Command ‘goal’ not found, did you mean:

command ‘gcal’ from deb gcal
command ‘gol’ from deb growl-for-linux

Try: apt install

any idea??

tried :
apt install goal

response :
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package goal

and still unable to use goal command

When you login to the machine there should be a folder “node” in your home directory. Change directory to “node” and run the command “./goal node start -d ./data”.

Unless you add the path to “node” to the environment path variable the shell doesn’t know where the goal executable lives. By appending “./” you are saying in this directory, run goal.

ok thanks. it seems that i am missing the “./” while running command node folder

Am also facing the same issue. Will try it later today again and update it here.

Can you help me configure the environmental variables?

Currently I am writing ./goal node start -d data

But I should be able to write “goal node start” with the variables set, right? I’m unsure how to do this.

this is on MacOS

In your home directory (~) edit the .bash_profile file to include

export ALGORAND_DATA=~/algorand/data (pointing to you data folder path).

After saving new shells will have variable loaded, type env to see all the environment variables. The goal program will be able to read the path to its data folder directly and you can stop using -d ./data.

Note, to take effect in your current shell, it has to be reloaded, which you can do with source ~/.bash_profile.

Thanks, that worked perfectly.

I also used the following:

export PATH="$PATH:."

Which adds the current directory to the PATH variable, so that I can simply write “goal” instead of “./goal”