New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when run install_hugo() #244

Closed
wenbo5565 opened this Issue Jan 15, 2018 · 8 comments

Comments

Projects
None yet
3 participants
@wenbo5565
Copy link

wenbo5565 commented Jan 15, 2018

I was trying to install hugo by install_hugo() but got an error as shown in the snapshot. I have no problem downloading or installing other packages.

capture

My os is windows 8.1. My R is 3.2.2 and RStudio is 1.1.383

Newly added after post (1/14/2018)
I looked into the source code. Then I changed the argument version from 'latest' to '0.31'. I didn't get the same error but a new one. The program is able to find a valid link now but failed to download the file. I am not sure why.

capture

capture1

Thank you.

@yihui yihui added this to the v0.5 milestone Jan 15, 2018

@yihui yihui added the question label Jan 15, 2018

@yihui

This comment has been minimized.

Copy link
Member

yihui commented Jan 15, 2018

Your R version is more than 2 years old. Please upgrade it.

@yihui yihui closed this Jan 15, 2018

@wenbo5565

This comment has been minimized.

Copy link

wenbo5565 commented Jan 15, 2018

Hi @yihui , I still got the same error after re-installing R and RStudio. Thanks for help.
capture1
capture

yihui added a commit that referenced this issue Jan 16, 2018

factor out install_hugo_bin() so that users can install the executabl…
…e manually, e.g., when downloading from Github fails (#244)
@yihui

This comment has been minimized.

Copy link
Member

yihui commented Jan 16, 2018

I don't know why it fails. Sounds like an SSL issue on Windows R. Anyway, you may install the dev version of blogdown devtools::install_github('rstudio/blogdown') and manually install Hugo:

  1. Download the zip file manually and unzip it, e.g., https://github.com/gohugoio/hugo/releases/download/v0.31/hugo_0.31_Windows-64bit.zip
  2. Call blogdown:::install_hugo_bin("path/to/hugo.exe") (change the path here to the actual path to hugo.exe).
@wenbo5565

This comment has been minimized.

Copy link

wenbo5565 commented Jan 16, 2018

@yihui
Hi Yihui, seems I could manually install hugo based on your instruction. However, I still cannot connect to github correctly when I use the new_site() function. I think it is because of the same error (you said maybe SSL issue)

image

It seems my connection to the url is good.
image

image

yihui added a commit that referenced this issue Jan 16, 2018

@yihui

This comment has been minimized.

Copy link
Member

yihui commented Jan 16, 2018

I cannot reproduce your issue on Windows, but pushed a possible fix anyway. Please restart R, devtools::install_github('rstudio/blogdown'), and retry.

@wenbo5565

This comment has been minimized.

Copy link

wenbo5565 commented Jan 17, 2018

@yihui
Now it seems working. It was "trying URL" twice. Both failed but the third time it connected successfully. Looks like you found the reason. Thank you a lot for the help.
image

@yihui

This comment has been minimized.

Copy link
Member

yihui commented Jan 17, 2018

Good to know. Thanks for the confirmation!

yihui added a commit that referenced this issue Jan 17, 2018

@fbetteo

This comment has been minimized.

Copy link

fbetteo commented Aug 20, 2018

Hey. Same issue here. Using latest blogdown version.
I have tried libcurl method without luck,
imagen

Update: Could install Hugo manually but also unable to create a new_site(). Exact same situation as OP but not working although installe the github version of bookdown.
4 "trying urls" always failing.

Any other idea? W10. R 3.4.2
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment