English No such file or directory

15 replies
Goto Page
To the start Previous 1 Next To the start
22.11.19 11:03:10 am
Up
Knight_69
User
Offline Off
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
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?
22.11.19 11:45:57 am
Up
FishyFinThing
User
Offline Off
Have you tried to change files permission using this code:
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.
file cs2d Fishy's Zombie Mod v0.2.0 Beta (Nov 27th 2019) (3) Join my server at "142.11.240.170". I hope you will have a good time. Please give some feedback.
22.11.19 12:19:24 pm
Up
Knight_69
User
Offline Off
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.
Code:
1
2
root@kazimkhan1gb:/home/bin/cs2d1# /cs2d_dedicated
-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
22.11.19 01:16:47 pm
Up
Marcell
Super User
Offline Off
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
edited 5×, last 22.11.19 02:31:33 pm
22.11.19 01:35:24 pm
Up
Knight_69
User
Offline Off
thanks for the reply and advice but it still says not a file or directory found
22.11.19 01:40:38 pm
Up
Hajt
User
Offline Off
Run like this
./cs2d_dedicated
not
/cs2d_dedicated
Yooo. We are playing mix matches 5on5 in evening hours on the server CS2D.TK | Mix/Match, you can join us, server password is match. Statistics, leaderboard can be found under the following link.
22.11.19 02:16:30 pm
Up
The Superman
User
Offline Off
Code:
1
sudo chmod +x cs2d_dedicated
22.11.19 02:34:11 pm
Up
Knight_69
User
Offline Off
@user Hajt: Its still not working..
@user The Superman: it worked but now what to do
22.11.19 02:38:36 pm
Up
The Superman
User
Offline Off
@user Knight_69: What do you mean, what's wrong now. Just run it.
edited 1×, last 22.11.19 07:34:23 pm
22.11.19 03:39:52 pm
Up
haha1955
User
Offline Off
@user 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?
22.11.19 07:31:01 pm
Up
The Superman
User
Offline Off
@user haha1955: @user Knight_69: 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 @user Marcell: tips/hints.

You need to install the 32-bit runtime system.

Run:
Code:
1
sudo dpkg --add-architecture i386
then
Code:
1
sudo apt-get update
and I'm not sure about this one
Code:
1
sudo apt-get install libc6:i386 zlib1g:i386
or
Code:
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
last or final
Code:
1
sudo chmod +x cs2d_dedicated
and now run 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
22.11.19 10:31:03 pm
Up
M3_Quick
User
Offline Off
@user Knight_69: 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.
IMG:https://i.imgur.com/DCz9Dko.png
22.11.19 10:50:16 pm
Up
Marcell
Super User
Offline Off
@user M3_Quick: He using Debian 8 64-bit if you check the thread that has been deleted not long ago, so commands are surely working.
23.11.19 10:52:46 am
Up
Knight_69
User
Offline Off
Bros, i found solution. Just remove 64 bit and add 32 bit and its solved. Thank you for your help guys
23.11.19 03:06:02 pm
Up
The Superman
User
Offline Off
@user Knight_69: 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.
23.11.19 03:22:50 pm
Up
Marcell
Super User
Offline Off
@user The Superman:

Exactly.

I made a server days ago even on CentOS 8 and Ubuntu latest 64 Bit dists and worked perfectly.
To the start Previous 1 Next To the start