Skip to content

ERROR: '/usr/local/share/scrcpy/scrcpy-server' does not exist or is not a regular file #1870

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

Open
2 tasks
littleIdiotperson opened this issue Oct 31, 2020 · 7 comments

Comments

@littleIdiotperson
Copy link

littleIdiotperson commented Oct 31, 2020

  • I have read the FAQ.
  • I have searched in existing issues.

Environment

  • OS: [e.g. Debian, Windows, macOS...] Linux Mint 19.3
  • scrcpy version: [e.g. 1.12.1] Scrcpy 1.6
  • installation method: [e.g. manual build, apt, snap, brew, Windows release...] snap install scrcpy
  • device model: Acer Aspire 5750
  • Android version: [e.g. 10] Android 10

Describe the bug
A clear and concise description of what the bug is.
whenever I install scrcpy this error came out ERROR: '/usr/local/share/scrcpy/scrcpy-server' does not exist or is not a regular file
and when I go to the directory I see NO scrcpy folder! Even after creating 2 folders (scrcpy and scrcpy-server) the error still there
Please notice I already tried looking for issues #1002 and #1692 but I don't know how to apply the solution for my machine, please Explain in details what should I do

On errors, please provide the output of the console (and adb logcat if relevant).

 scrcpy
INFO: scrcpy 1.16 <https://github.com/Genymobile/scrcpy>
stat: No such file or directory
ERROR: '/usr/local/share/scrcpy/scrcpy-server' does not exist or is not a regular file

Please do not post screenshots of your terminal, just post the content as text instead.

@rom1v
Copy link
Collaborator

rom1v commented Oct 31, 2020

What is the result of?

echo $SCRCPY_SERVER_PATH

?

@littleIdiotperson
Copy link
Author

littleIdiotperson commented Oct 31, 2020

What is the result of?

> echo $SCRCPY_SERVER_PATH


?

> snap install scrcpy

@cc sisco311

The result for echo $SCRCPY_SERVER_PATH and

snap install scrcpy

are
root@rayan:~# echo $SCRCPY_SERVER_PATH

root@rayan:#
and
root@rayan:
# snap install scrcpy

scrcpy v1.16 from sisco311 installed
respectively.
and the result of scrcpy --help come normally

@rom1v
Copy link
Collaborator

rom1v commented Oct 31, 2020

cc @sisco311

@rom1v
Copy link
Collaborator

rom1v commented Nov 1, 2020

@littleIdiotperson Could you try building it manually (instead of using the snap package)?

https://github.com/Genymobile/scrcpy/blob/master/BUILD.md

@littleIdiotperson
Copy link
Author

littleIdiotperson commented Nov 1, 2020

@rom1v Thank you rom1v for ur care about fixing my problem. The output of run-tme dependencies is

Reading package lists... Done
Building dependency tree       
Reading state information... Done
ffmpeg is already the newest version (7:4.1.3-0ppa1~18.04).
libsdl2-2.0-0 is already the newest version (2.0.12+dfsg1-2).
adb is already the newest version (1:8.1.0+r23-5~18.04).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

and from client build dependencies is

sudo apt install gcc git pkg-config meson ninja-build \
>                  libavcodec-dev libavformat-dev libavutil-dev \
>                  libsdl2-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libavcodec-dev is already the newest version (7:4.1.3-0ppa1~18.04).
libavformat-dev is already the newest version (7:4.1.3-0ppa1~18.04).
libavutil-dev is already the newest version (7:4.1.3-0ppa1~18.04).
libsdl2-dev is already the newest version (2.0.12+dfsg1-2).
pkg-config is already the newest version (0.29.1-0ubuntu2).
ninja-build is already the newest version (1.8.2-1).
gcc is already the newest version (4:7.4.0-1ubuntu2.3).
git is already the newest version (1:2.17.1-1ubuntu0.7).
The following NEW packages will be installed:
  meson
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 216 kB of archives.
After this operation, 1,355 kB of additional disk space will be used.
Do you want to continue? [Y/n] 

the meson my system is going to install is version 0.45.1 which is not supported for scrcpy as far as I know.. why didn't scrcpy detected that I have already installed meson and the output of meson --version is

root@rayan:~# meson --version
0.56.0

is this snap issues or what ? either scrcpy can't detect meson or meson is installed wrong or something else idk?

@littleIdiotperson
Copy link
Author

littleIdiotperson commented Nov 8, 2020

Just searched for "scrcpy-server" in system files to detect where it went, I found it in the directory /snap/scrcpy/253/usr/local/share/scrcpy and moved it to usr/local/share/scrcpy. Question, why did snap installed it in different location,I will ask snap community for that ?

@13banda
Copy link

13banda commented Mar 26, 2021

+1

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

3 participants