scipsycho
scipsycho

Reputation: 587

Installing Hyperledger fabric dependent binaries using Docker for Mac

I downloaded Docker for Mac since it was a prerequisite for Hyperledger Fabric (also listed here). Now, I downloaded platform specific binaries listed here.

The instructions said:

If you are using Docker for Mac, you will need to use a location under /Users, /Volumes, /private, or /tmp. To use a different location, please consult the Docker documentation for file sharing.

So,I used the following directory: /Users/user_name/Documents/Hyperledger\ Fabric/

I followed the same commands as listed on the site.
However, I was not able to add the line below to the ~/.bash_profile.

export PATH=/Users/user_name/Documents/Hyperledger\ Fabric/bin:$PATH  

If I added the above line and ran the bash_profile, it gave an error and after that commands like ls, open were giving error not found.

It seems that there is a problem with the file location since I installed Docker for Mac instead of Docker toolbox.

Upvotes: 2

Views: 254

Answers (1)

christo4ferris
christo4ferris

Reputation: 4037

The problem is that your directory name contains a space. One way to avoid this problem is to specify a directory name that has no spaces. This would be the ideal approach since once you introduce a space in the PATH variable it would need to be quoted where used subsequently.

Alternately, you could set the path as:

export PATH="/Users/user_name/Documents/Hyperledger Fabric/bin":$PATH

However, as noted this has drawbacks.

Upvotes: 1

Related Questions