Same happens in Debian Jessie. Only the following error message is found:
portal2.sh: /bin/bash^M: bad interpreter.
When executing through "sh ./portal2.sh" then the following error shows up:
"/portal2.sh: 16: ./portal2.sh: Syntax error: "elif" unexpected (expecting "then")"
Well, whoever wrote this script can not have tested it even once on linux:
Once these bugs are fixed I still get a "Failed to load launcher DLL" error.
Did you follow the instructions in the README and opt yourself in to the beta? You need to do this otherwise it won't work.
What README? The game is installed normally via Steam.
portal2.sh needs to be saved with LF and line endings, not CR+LF.
There's also no README included:
find ~/.local/share/Steam/SteamApps/common/Portal\ 2/ -iname README
Even after fixed the line feeds, the script has other errors regarding mixing 64/32bit libs. After symlinking to 64bit ones, another error is given.
I'm on ArchLinux amd64.
It also confused me. My bet is that he is referring to the online one on github:
https://github.com/ValveSoftware/portal2
Yes, please refer here for instructions: https://github.com/ValveSoftware/portal2
You need to opt-in to the beta in Steam to play Portal2 on Linux right now.
I belive it's extremely confusing because the game appear in the library and is installable right from Steam, but DOES NOT work as is; one needs to come across the github readme to get it to work. Is there any reason why the "(beta)" doesn't work, and we need to opt into "(beta) [beta]"?
Nothing extracted yet.
Game update: AppID 620 "Portal 2 (Beta)", ProcID 3196, IP 0.0.0.0:0
ERROR: ld.so: object '/home/mikhail/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded: ignored.
/bin/sh: /home/mikhail/.local/share/Steam/SteamApps/common/Portal 2/portal2.sh: /bin/bash^M: bad interpreter: No such file or directory
CGameStreamThread: Added instance ID 3196 for appid 620
CGameStreamThread: Set render instance ID 3196 for appid 620
Processor Information:
Vendor: GenuineIntel
CPU Family: 0x6
CPU Model: 0x3c
CPU Stepping: 0x3
CPU Type: 0x0
Speed: 3900 Mhz
8 logical processors
4 physical processors
HyperThreading: Supported
FCMOV: Supported
SSE2: Supported
SSE3: Supported
SSSE3: Supported
SSE4a: Unsupported
SSE41: Supported
SSE42: Supported
Network Information:
Network Speed:
Operating System Version:
"Fedora release 20 (Heisenbug)" (64 bit)
Kernel Name: Linux
Kernel Version: 3.13.5-200.fc20.x86_64
X Server Vendor: Fedora Project
X Server Release: 11404000
X Window Manager: GNOME Shell
Steam Runtime Version: steam-runtime-release_2014-02-05
Video Card:
Driver: Intel Open Source Technology Center Mesa DRI Intel(R) Haswell Desktop
Sound card:
Audio device: Intel Haswell HDMI
Memory:
RAM: 32064 Mb
Miscellaneous:
UI Language: English
LANG: en_US.utf8
Microphone: Not set
Total Hard Disk Space Available: 2816556 Mb
Largest Free Hard Disk Block: 210668 Mb
Installed software:
Recent Failure Reports: