4

I am trying out the steps for setting up a sample hyperledger fabric1.0 network as per the steps mentioned here on windows 7. As part of this I am following these steps for Hyperledger Fabric Samples.

Since my OS is Windows7 64bit, I am using Docker Toolbox

But my problem here is, while running the following command in Docker Quickstart Terminal

curl -sSL https://goo.gl/iX9dek ¦ bash

I am getting the error

bash: line 1: syntax error near unexpected token `newline'
bash: line 1: <HTML>

I also found a note in the steps like

If you get an error running the above curl command, you may have too old a version of curl. Please visit the Prerequisites page for additional information on where to find the latest version.

I have the latest version of curl set in the windows environment, but in Docker Quickstart Terminal it is using some older version.
I tried to update it in virtual machine terminal using yum update curl.x86_64 but yum, update etc. are not found.

How can I update the curl in this case? And if the curl version is not the problem, where I am doing wrong here?

Please suggest..

Thanks in advance.

Girish007
  • 442
  • 6
  • 26

2 Answers2

3

Finally found the issue.:)

The problem was with the url https://goo.gl/iX9dek, the document here is moved to here which is not updated in the stepout that I am following.

It is working with the following command

curl -sSL https://raw.githubusercontent.com/hyperledger/fabric/master/scripts/bootstrap-1.0.0.sh | bash


Girish007
  • 442
  • 6
  • 26
3

Actually, the issue is more likely that the version of curl on your machine doesn't support redirects. In the note below the instructions for the curl command is a note that suggests that if you have errors, update your version of curl.

Note that replacing the URL with the raw GH URL is also a correct solution, but you probably want to update curl regardless.

christo4ferris
  • 4,039
  • 1
  • 17
  • 30
  • Yes you are right. But as mentioned in the post I couldn't update the curl version in the virtual machine since the commands I tried were not working(might be because I am less familiar with these commands). That's why I tried with new url and fortunately it worked :). Thanks for the comment. – Girish007 Aug 10 '17 at 17:40
  • https://stackoverflow.com/questions/46582747/how-to-switch-from-docker-toolbox-curl-to-the-curl-defined-in-windows-path – Igor L. Oct 05 '17 at 10:14