Skip to content
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

install.sh error #34

Open
xiangee2022 opened this issue Sep 19, 2022 · 3 comments
Open

install.sh error #34

xiangee2022 opened this issue Sep 19, 2022 · 3 comments

Comments

@xiangee2022
Copy link

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
Copy link
Member

mikh3x4 commented Sep 19, 2022

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
Copy link
Author

xiangee2022 commented Sep 27, 2022

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
Copy link
Member

mikh3x4 commented Sep 28, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants