No such file or directory what am i missing here ?
Can't say how many times i have installed different distros only to eventually become frustrated and wipe it clean and install begrudgingly windows OS. But with that said my curiosity has me once again running linux.
I will hopefully stick it out this time or am determined to stick it out and learn the basics of Linux if it takes forever or not. Current project is to install a linux based cod2 server on a home machine, which i have actually done before some years ago but can not get it working for the life of me again . So i figure that if i take it one problem at a time I might actually learn the workings of the OS and figure it out with the help of experienced users here. I have tutorials on how to install the server , its just more of a problem of me not understanding the basics of Linux. First Problem : I have installed the necessary files needed for the server in a directory"cod2" that i have created in my root/home directory . OS is Ubuntu as i tried a few others and could not even get them installed so decided to start with a user friendly distro. When i try to run the server i get an error that reports "no such file or directory" but if i bring up a dir.(type ls in console) list it clearly shows the file there. I am in that directory "cod2" as i navigate to it through the terminal with the cd command. I am logged in as root user as well . What am I missing here ? How can i receive this error when the file is clearly in the right directory . thank you kindly for any help possible including links to where I might learn something basic that I am missing . Wrath ps I'm old yet determined and quite stubborn but very open minded and willing to learn . |
What is the complete path to the executable and what command are you running ?
|
How are you trying to run the server? You need to be precise when asking for help. Post (copy and paste) the commands you run and all output you get.
|
Can you navigate to the directory and post the entire path (from the shell type pwd - which stands for Print Working Directory)?
Then from your tutorial, can you tell us what directory (the entire path) that it wants it installed in? |
Awesome
Yes sorry , just got back in from working going to run some errands with the wife then Ill answer as best possible all of your responses . I am stunned and seriously enthused with the amazing response here , I surely have come to the right place .
Thanks you ! Wrath |
If you don't have permissions to a file, it will say it's not there.
$ ls -l /path/to/that/thing You must comply with the permissions. drwxrwxrwx. read write execute. user(owner) / group / other / all? Also bear in mind that services (daemons) run in their own space and don't have userspace environment variables. At least not set to the same settings. So you might have to use fully qualified paths on files and executables in whatever scripts or config files. Not always, but it's a good place to start. And then there's selinux and access control lists to further complicate permissions. Things which might not have existed back when you last setup such a server. But they have been around for a while now, so it's mostly well documented. No ideal what a cod2 server is(yet), but hopefully this helps. |
Quote:
|
smoker: complete path is only two directories root/cod2 the command is and I have used it before and worked and have a rented server with same is ./cod2_lnxded base command with all the server flags: ./cod2_lnxded +set dedicated 2 +set net_ip 0.0.0.0 +exec server.cfg +set sv_punkbuster 1 +map_rotate actually had it working one install ago except was receiving a library error which will be in my next post if i get this figured .
AlucardZero: Bringing up the terminal and typing in the command listed above , hitting enter root@gunz-desktop:~# cd root@gunz-desktop:~# cd cod2 root@gunz-desktop:~/cod2# ./cod2_lnxded bash: ./cod2_lnxded: No such file or directory root@gunz-desktop:~/cod2# ./cod2_lnxded +set dedicated 2 +set net_ip 0.0.0.0 +exec server.cfg +set sv_punkbuster 1 +map_rotate bash: ./cod2_lnxded: No such file or directory root@gunz-desktop:~/cod2# When i check the list root@gunz-desktop:~/cod2# ls cod2_lnxded cod.bmp gfx_d3d_x86_s.dll miles README.linux CoD2MP_s.exe codlogo.bmp localization.txt mss32.dll COD2SP_s.exe gfx_d3d_mp_x86_s.dll main pb root@gunz-desktop:~/cod2# pljvaldez: root@gunz-desktop:~# cd cod2 root@gunz-desktop:~/cod2# pwd /root/cod2 root@gunz-desktop:~/cod2# Shadow_7: Sorry my friend not really following you , certainty not because your explanation is not valid or sufficient, more so because of my lack of knowledge . Previous Install (yes i have reinstalled the os a few times) I had it working as I had tried as a user (not root) then found out how to add root password to access root account , installed everything there and it actually worked well kinda i received the common error about libraries (./cod2_lnxded: error while loading shared libraries: libstdc++.so.5:cannot open shared object file: No such file or directory) tried to figure that out and hosed the OS . But thats the next step Nylex: Sounds like your correct but as mentioned I dont know much at all and thank you for your input. thanks all for your input , do really appreciate it and once again excuse my ignorance if you will thanks ! Wrath Thanks everyone do appreciate it . |
What do the following return (when you're in ~/cod2)?:
Code:
ls -l cod2_lnxded |
I'm curious about what's in README.linux as I see .exe and .dll files there. They only work on MS systems... should this be inside Wine?
|
The problem is most likely that the file to run is in the current working directory. Unintuitively, the current working directory is NOT in the $PATH by default (but for good reason). The upshot of this is that you must type './theNameOfTheFile', specifying explicitly like this that the file is located in the current working directory. This is a common stumbling block for newbies.
--- rod. |
Quote:
|
Quote:
Code:
root@gunz-desktop:~# cd cod2 |
Quote:
Code:
Call Of Duty 2(tm) |
hmm
Quote:
My gut feeling or instinct is telling me that its something simple that I am overlooking or missing . Anyways Ill read through the read me once again , make sure Im absolutely exact in my command , perhaps create another or use the other account instead of the root account . Thanks Everyone ! Wrath |
All times are GMT -5. The time now is 10:39 PM. |