Closed ghost closed 4 years ago
We are still unsure as to what causes this, because it's something to do with the compiler itself and possibly not finding the shared library that is in the same folder as it.
It could be due to the fact that while downloading the compiler, it become corrupted and won't execute properly. It has been an issue that even myself has faced in the past but was unable to find out the cause for it, though after a re-install, it fixed the issue.
If you are able to leave some information about the permissions it has, the file size and using ldd
to show what it links against on your system, would be helpful towards fixing this problem in the future.
I think this happens with compiler 3.10.9+ (if I remember correct) and is related to a newer version of some dependency inside the binary. Though I could be wrong.
Try with pawn compiler 3.10.8 it might work.
I think i solved the problem, it's because i'm using a 64 bit and pawncc require lib32 package. Here is the command i used during my research to "how to fix this issue"
sudo apt install sudo dpkg --add-architecture i386
sudo apt update
sudo apt install lib32z1 libtstdc++6:i386
cd ~/.samp/pawn/3.10.10/
sudo chmod +x pawncc
After that, i test again with sampctl package build
and it worked.
Here i made a .sh file: https://gist.github.com/se8870/c1a7265f02cc2722dfb1b0d137fcba46 (Debian based only)
Ah yes, I completely forgot about that detail! Thanks for sharing the solution.
sudo apt install sudo dpkg --add-architecture i386 sudo apt update sudo apt install lib32z1 libtstdc++6:i386 cd ~/.samp/pawn/3.10.10/ sudo chmod +x pawncc
Should be
-- sudo apt install sudo dpkg --add-architecture i386
++ sudo apt install
++ sudo dpkg --add-architecture i386
sudo apt update
sudo apt install lib32z1 lib32stdc++6
cd ~/.samp/pawn/3.10.10/
sudo chmod +x pawncc
Here is the output:
Just ignore
failed to open repo
because its finding my repository not rutimes.Also maybe i can download manually butbetter find a solution for user linux who got error like this.