Raised This Month: $51 Target: $400
 12% 

Solved Can't run hlds on linux on windows


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
KiLLeR.
Senior Member
Join Date: Jul 2014
Location: Bulgaria
Old 08-25-2017 , 13:34   Can't run hlds on linux on windows
Reply With Quote #1

I have installed Bash on Ubuntu on Windows and when I tried to start hlds:
Code:
iliyan@ASUS:~$ cd /mnt/d/Documents/CS_Servers/steamcmd/rehlds_linux/
iliyan@ASUS:/mnt/d/Documents/CS_Servers/steamcmd/rehlds_linux$ ./hlds_run -game cstrike +maxplayers 8 +map de_dust
Auto-restarting the server on crash
./hlds_linux: 1: ./hlds_linux: Syntax error: word unexpected (expecting ")")
HLDS is a freshly installed through steamcmd. Also I updated to ReHLDS, including ReGameDLL and Metamod-R. There is no AMXX, just clean platfrom.

P.S.: Before updating to ReHLDS, I had tried too, but without success.

Last edited by KiLLeR.; 08-27-2017 at 15:26.
KiLLeR. is offline
PRoSToTeM@
Veteran Member
Join Date: Jan 2010
Location: Russia, Ivanovo
Old 08-25-2017 , 14:57   Re: Can't run hlds on linux on windows
Reply With Quote #2

Bash on Ubuntu supports only x64 applications. I tried qemu-i386, but I had some problems: pthread and non 64-bit stat. To solve problem with pthread you need to remove steam usage from HLDS (I've done this with engine patching). To fix a problem with stat I've made a workaround that wraps stat call and calls stat64.
__________________
PRoSToTeM@ is offline
Send a message via ICQ to PRoSToTeM@ Send a message via Skype™ to PRoSToTeM@
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 08-25-2017 , 15:45   Re: Can't run hlds on linux on windows
Reply With Quote #3

Better do it in a virtual machine running Linux. x86 support is currently the top 6th on UserVoice but nothing is being done.

Last edited by klippy; 08-25-2017 at 15:45.
klippy is offline
KiLLeR.
Senior Member
Join Date: Jul 2014
Location: Bulgaria
Old 08-26-2017 , 14:17   Re: Can't run hlds on linux on windows
Reply With Quote #4

So there's no way I can do it with Ubuntu Bash, unless there's x86 support, but according to what I read, they have no such plans.
Thanks anyway.

Last edited by KiLLeR.; 08-26-2017 at 14:23.
KiLLeR. is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 23:57.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode