stanfordroboticsclub / StanfordQuadruped

MIT License
1.47k stars 577 forks source link

install.sh error #34

Open xiangee2022 opened 2 years ago

xiangee2022 commented 2 years ago

pi@raspberrypi(rw):~/StanfordQuadruped$ sudo bash install.sh Reading package lists... Done Building dependency tree Reading state information... Done libatlas-base-dev is already the newest version (3.10.3-8+rpi1). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. install.sh: line 2: pip3: command not found install.sh: line 3: pip: command not found sudo: pip: command not found install.sh: line 7: git: command not found install.sh: line 8: cd: PupperCommand: No such file or directory bash: install.sh: No such file or directory install.sh: line 12: git: command not found install.sh: line 13: cd: PS4Joystick: No such file or directory bash: install.sh: No such file or directory Failed to enable unit: Unit file joystick.service does not exist. --2019-02-14 18:30:30-- https://github.com/joan2937/pigpio/archive/v74.zip Resolving github.com (github.com)... 20.205.243.166 Connecting to github.com (github.com)|20.205.243.166|:443... connected. ERROR: The certificate of ‘github.com’ is not trusted. ERROR: The certificate of ‘github.com’ is not yet activated. The certificate has not yet been activated unzip: cannot find or open v74.zip, v74.zip.zip or v74.zip.ZIP. install.sh: line 20: cd: pigpio-74: No such file or directory make: No targets specified and no makefile found. Stop. make: No rule to make target 'install'. Stop. install.sh: line 25: cd: StanfordQuadruped: No such file or directory ln: failed to create symbolic link '/etc/systemd/system/robot.service': File exists Failed to enable unit: Unit file robot.service does not exist. Failed to start robot.service: Unit robot.service not found.

mikh3x4 commented 2 years ago

Looks like you don’t have the commands installed. There should be a script in your home directory called install_packages.sh that’s should installed them. Alternatively you can apt install the missing packages (pip, git, ) manually

xiangee2022 commented 2 years ago

Hi mikh3x4, thank you very much for your help, you are right, however, after I executed install_packages.sh, a new problem appeared, when I executed the [sudo bash ./install.sh] command again, I got the following error: ...... running install_egg_info Writing /usr/local/lib/python2.7/dist-packages/pigpio-1.45.egg-info if which python3; then python3 setup.py install ; fi /usr/bin/python3 running install running build running build_py creating build/lib copying pigpio.py -> build/lib running install_lib running install_egg_info Writing /usr/local/lib/python3.7/dist-packages/pigpio-1.45.egg-info install -m 0755 -d /usr/local/man/man1 install -m 0644 p.1 /usr/local/man/man1 install -m 0755 -d /usr/local/man/man3 install -m 0644 p.3 /usr/local/man/man3 ldconfig ln: failed to create symbolic link '/etc/systemd/system/robot.service': File exists Failed to enable unit: Unit file robot.service does not exist. Failed to start robot.service: Unit robot.service not found.

Did I install it successfully?

mikh3x4 commented 2 years ago

Looks like it installed succesfuly - its just that you already have a file called /etc/systemd/system/robot.service. if you type ls -la /etc/systemd/system/robot.service it will show it if its a symbolic link and if so where it points. Its a service file that explains how to start up the program. You can read more about them here