Het forum

Cannot start PlayOnLinux

Auteur Antwoorden
Jud Dinsdag 7 Augustus 2012 om 17:07
JudAnonymous

Hi,

I tried to start PlayOnLinux but it says: "PlayOnLinux cannot find nc. You need to install it to continue".
But I do not know what "nc" is ...
4.1.3 worked (but has this update-bug), only newer versions do not work.

Any advise?
Thanks!
Quentin PÂRIS Dinsdag 7 Augustus 2012 om 18:35
Quentin PÂRISAnonymous

nc is netcat
Jud Woensdag 8 Augustus 2012 om 12:10
JudAnonymous

Thanks, I installed netcat and now it is working fine.
But could you add it as dependency or just write the full name in the error message? That makes life easier ;) if someone else has this (or a similar) error in the future.
Decebal Zondag 12 Augustus 2012 om 12:08
DecebalAnonymous

Jud, I had the same problem. If you launch the app from a console, you'll see something like 'which: no nc in (/usr/lib64/mpi/gcc/openmpi/bin:/home/l/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/opt/kde3/bin)'
My solution was to copy (as root) netcat to /usr/games and then rename it to nc.
# cd /usr/bin/
/usr/bin # cp -p netcat /usr/games/
/usr/bin # cd /usr/games/
/usr/games # cp netcat nc

Why would the devels choosed to rename netcat to nc is beyond me. Hope it'll work for you too.
petch Zondag 12 Augustus 2012 om 15:37
petch

Well, if you look at Makefile in the upstream sources, that's how it's initially called (not to mention package name);
http://nc110.svn.sourceforge.net/viewvc/nc110/nc110/Makefile:

nc: netcat.c
     $(LD) $(DFLAGS) $(XFLAGS) $(STATIC) -o nc netcat.c $(XLIBS)


It probably comes down to the old tradition to give short names to command line utiliies on Unix to decrease typing.

Aangepast door petch

Decagon Donderdag 29 November 2012 om 5:18
DecagonAnonymous

Jud, I had the same problem. If you launch the app from a console, you'll see something like 'which: no nc in (/usr/lib64/mpi/gcc/openmpi/bin:/home/l/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/opt/kde3/bin)'
My solution was to copy (as root) netcat to /usr/games and then rename it to nc.
# cd /usr/bin/
/usr/bin # cp -p netcat /usr/games/
/usr/bin # cd /usr/games/
/usr/games # cp netcat nc

Quote from Decebal

My error said:
which: no nc in (/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.6.3:/opt/android-sdk-update-manager/tools:/opt/android-sdk-update-manager/platform-tools:/usr/games/bin)

So I followed your instructions but changed /usr/games/ to /usr/games/bin/