scrcpy: [Linux] adb: error: cannot stat '/usr/local/bin/scrcpy-server.jar': No such file or directory

I built and installed scrcpy (git tag v1.9) on Fedora 30 following the instructions from the readme but, when I tried to start it, I got this error:

$ scrcpy 
adb: error: cannot stat '/usr/local/bin/scrcpy-server.jar': No such file or directory
ERROR: "adb push" returned with value 1

Looks like that ninja is installing scrcpy-server.jar in /usr/local/share/scrcpy/scrcpy-server.jar but scrcpy is looking for it in /usr/local/bin/scrcpy-server.jar.

Symlinking it didn’t work:

$ scrcpy 
adb: error: cannot stat '/usr/local/bin/scrcpy-server.jar': Too many levels of symbolic links
ERROR: "adb push" returned with value 1

A workaround is to provide a copy of the sever on that path:

$ sudo cp /usr/local/share/scrcpy/scrcpy-server.jar /usr/local/bin/scrcpy-server.jar

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 15

Most upvoted comments

Thanks a lot @rom1v for all ur help finally got my mistake corrected .