No such file or directory
15 replies



22.11.19 11:03:10 am
Hi there, i am trying to create a cs2d server but i am getting some errors.
I installed everything and done everything but when i try to open cs2d_dedicated it shows error
I installed everything and done everything but when i try to open cs2d_dedicated it shows error
Quote:
-bash: /home/bin/cs2d1/cs2d_dedicated: No such file or directory
Even though i have checked it on filezilla and everything is fine.
Any Solution?
Even though i have checked it on filezilla and everything is fine.
Any Solution?

Discord: KnightS#5188
Have you tried to change files permission using this code:
Please note that you will have to use
command to get to the CS2D's folder directory
once you've done it. Go to the directory and use
to see the file list.
If every file names is green. That's mean you have full access to them.
Code:
1
chmod 777 -R ./
Please note that you will have to use
Code:
1
cd
command to get to the CS2D's folder directory
once you've done it. Go to the directory and use
Code:
1
ls -l
to see the file list.
If every file names is green. That's mean you have full access to them.


Okay i got it everything fine but now how to start srv ? mean how to open cs2d_dedicated. when i try to open it its not working.
I can find cs2d_dedicated in ls -1.
Code:
1
2
2
root@kazimkhan1gb:/home/bin/cs2d1# /cs2d_dedicated
-bash: /cs2d_dedicated: No such file or directory
-bash: /cs2d_dedicated: No such file or directory
I can find cs2d_dedicated in ls -1.
Code:
1
-rwxrwxr-x 1 root root 2829224 Nov 21 11:51 cs2d_dedicated
edited 1×, last 22.11.19 12:33:38 pm
Discord: KnightS#5188
His problem that there are no 32 libs installed as it's a 64 bit OS and the server binary was built for 32 bit, what you need is to install the libraries.
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install build-essential gcc-multilib rpm libstdc++6:i386 libgcc1:i386 zlib1g:i386 libncurses5:i386
You may try to install the
sudo apt-get install ia32-libs
after the ones above, but I don't think it will work.
You might also want to add executive permissions for the binary with
sudo chmod +x cs2d_dedicated
Generally speaking the first part of the commands should resolve your issue.
Also, please don't make multiple threads, trust me, it's pointless. You will not get a reply any faster.
Piece of advice: Never run any server with root permission...
instead make a user for example CS2D and give permissions for the files and folders just for the server directory with chown -R user:group folder
then login to that specific user and run the server that way.
Btw, you could save the hassle by simply checking the FAQ
http://www.cs2d.com/faq.php?show=linux_nostart#linux_nostart



You may try to install the

after the ones above, but I don't think it will work.
You might also want to add executive permissions for the binary with

Generally speaking the first part of the commands should resolve your issue.
Also, please don't make multiple threads, trust me, it's pointless. You will not get a reply any faster.
Piece of advice: Never run any server with root permission...
instead make a user for example CS2D and give permissions for the files and folders just for the server directory with chown -R user:group folder
then login to that specific user and run the server that way.
Btw, you could save the hassle by simply checking the FAQ
http://www.cs2d.com/faq.php?show=linux_nostart#linux_nostart
edited 5×, last 22.11.19 02:31:33 pm
CS2DArchive - Version Database www.CS2DArchive.com - WebHosting: www.BroHosting.eu
thanks for the reply and advice but it still says not a file or directory found
Discord: KnightS#5188
@
KnightS: What do you mean, what's wrong now. Just run it.

edited 1×, last 22.11.19 07:34:23 pm
@
The Superman: its says every time again: no such file or directory!
what need i do to?
and please tell me how can i create user on terminal?

what need i do to?
and please tell me how can i create user on terminal?
@
haha1955: @
KnightS: The reason is you're trying to run a 32-bit binary on a 64-bit system that doesn't have 32-bit support installed as Marcel said. Try to follow @
Salad Fingers: tips/hints.
You need to install the 32-bit runtime system.
Run:
It should get success, if it wasn't sucuess it means you missed something.



You need to install the 32-bit runtime system.
Run:
Code:
then 1
sudo dpkg --add-architecture i386
Code:
and I'm not sure about this one 1
sudo apt-get update
Code:
or 1
sudo apt-get install libc6:i386 zlib1g:i386
Code:
last or final 1
sudo apt-get install libc6:i386 libgtk2.0-0:i386 libidn11:i386 libglu1-mesa:i386 libpangox-1.0-0:i386 libpangoxft-1.0-0:i386
Code:
and now run CS2D Dedicated.1
sudo chmod +x cs2d_dedicated
It should get success, if it wasn't sucuess it means you missed something.
edited 14×, last 22.11.19 08:08:01 pm
@
KnightS: Can you clarify what operating system you use and its version?
since commands are not executed in the same way in all versions of linux.
I suggest you use crontab to play your server.

since commands are not executed in the same way in all versions of linux.
I suggest you use crontab to play your server.
@
cs2d_is_a_Gem: He using Debian 8 64-bit if you check the thread that has been deleted not long ago, so commands are surely working.

CS2DArchive - Version Database www.CS2DArchive.com - WebHosting: www.BroHosting.eu
Bros, i found solution. Just remove 64 bit and add 32 bit and its solved. Thank you for your help guys
Discord: KnightS#5188
@
KnightS: At least it is not a solution, if you used my method it would work properly in Debian 8 64-bit. But you didn't actually try that.

@
The Superman:
Exactly.
I made a server days ago even on CentOS 8 and Ubuntu latest 64 Bit dists and worked perfectly.

Exactly.
I made a server days ago even on CentOS 8 and Ubuntu latest 64 Bit dists and worked perfectly.
CS2DArchive - Version Database www.CS2DArchive.com - WebHosting: www.BroHosting.eu



