ubuntu 下安装开发环境,执行install.sh总是下载不完并失败

ningzb
Posts: 4
Joined: Wed Aug 21, 2019 2:31 am

ubuntu 下安装开发环境,执行install.sh总是下载不完并失败

Postby ningzb » Wed Aug 21, 2019 2:40 am

ningzb@ningzb-VirtualBox:~/esp/esp-idf$ ./install.sh
Installing ESP-IDF tools
Installing tools: xtensa-esp32-elf, esp32ulp-elf, openocd-esp32
Skipping xtensa-esp32-elf@esp32-2019r1-8.2.0 (already installed)
Skipping esp32ulp-elf@2.28.51.20170517 (already installed)
Installing openocd-esp32@v0.10.0-esp32-20190708
Downloading openocd-esp32-linux64-0.10.0-esp32-20190708.tar.gz to /home/ningzb/.espressif/dist/openocd-esp32-linux64-0.10.0-esp32-20190708.tar.gz.tmp
3%Traceback (most recent call last):
File "/home/ningzb/esp/esp-idf/tools/idf_tools.py", line 1317, in <module>
main(sys.argv[1:])
File "/home/ningzb/esp/esp-idf/tools/idf_tools.py", line 1313, in main
action_func(args)
File "/home/ningzb/esp/esp-idf/tools/idf_tools.py", line 1107, in action_install
tool_obj.download(tool_version)
File "/home/ningzb/esp/esp-idf/tools/idf_tools.py", line 541, in download
urlretrieve(url, local_temp_path, report_progress if not global_non_interactive else None)
File "/usr/lib/python2.7/urllib.py", line 98, in urlretrieve
return opener.retrieve(url, filename, reporthook, data)
File "/usr/lib/python2.7/urllib.py", line 273, in retrieve
block = fp.read(bs)
File "/usr/lib/python2.7/socket.py", line 384, in read
data = self._sock.recv(left)
File "/usr/lib/python2.7/ssl.py", line 772, in recv
return self.read(buflen)
File "/usr/lib/python2.7/ssl.py", line 659, in read
v = self._sslobj.read(len)
socket.error: [Errno 104] Connection reset by peer


下载最多到21%
不知道什么原因,而且出错后,重新执行,又从头开始下载,折腾1天了,还是没安装好开发环境

ESP_igrr
Posts: 1521
Joined: Tue Dec 01, 2015 8:37 am

Re: ubuntu 下安装开发环境,执行install.sh总是下载不完并失败

Postby ESP_igrr » Wed Aug 21, 2019 10:07 am

Can you try downloading this file from Github releases page manually?
https://github.com/espressif/openocd-es ... 2-20190708

If you can download it by web browser, then put it into ~/.espressif/dist directory, and run install.sh again.

ningzb
Posts: 4
Joined: Wed Aug 21, 2019 2:31 am

Re: ubuntu 下安装开发环境,执行install.sh总是下载不完并失败

Postby ningzb » Sun Sep 08, 2019 3:47 am

谢谢,那个文件比较难下载,手动下载了好几次才成功,今天按你说的,拷贝下载的文件
work@work-VirtualBox:~$ cp openocd-esp32-linux64-0.10.0-esp32-20190708.tar.gz /home/work/esp/idf_tools/dist/
然后执行install.sh才可以继续安装

终于安装好了,基本上解决了开发环境的问题。
在不同的目录下编译程序,需要执行以下. /home/work/esp/esp_idf/export.sh(注意点后面有个空格),然后就可以用idf.py了

Who is online

Users browsing this forum: Baidu [Spider] and 3 guests