dboehmer / coocook

👨‍🍳🦉 Web application for collecting recipes and making food plans
https://coocook.org/
Other
11 stars 2 forks source link

Function getpwuid() is not implemented in Windows #71

Closed ChristinaSi closed 6 years ago

ChristinaSi commented 6 years ago

When I start the server the following error message appears:

The getpwuid function is unimplemented at C:\Users\Christina\coocook\lib/Coocook.pm line 107.
Compilation failed in require at C:/Strawberry/perl/site/lib/Catalyst/Utils.pm line 309.

A solution according to the internet is to use

my $username = $ENV{USERNAME};

instead or a different module called Net::SSH::W32Perl. But it would be nice if it would work on Windows and on Linux without adjusting any code.