Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

Grav/gpm under Windows seems broken

Started by Muut Archive 11 years ago · 10 replies · 431 views
11 years ago

Just tried to use bin\grav and bin\gpm. Got stuck with an error regarding unknown eval function. I remember we already had this some time ago. You fixed this then, but now its the old problem again.
I tried to run the commands with "php bin\grav" and "php bin\gpm".

11 years ago

Try running php bin\grav install. This results in
"ERROR Missing .dependencies file in user/ folder
ERROR invalid YAML in .dependencies"

11 years ago

You either need to add your php.exe to your path (google it), or prefix all your commands with the full path to it:

TXT
c:\php\is\installed\bin\php.exe bin/gpm index

Obviously it depends how you installed and are using PHP, so find the appropriate path to the exe first. Better to add it to your path though as this will get old!

11 years ago

Hey Andy,
I tried both, adding PHP to the environment and also using the full executable path. I might add that I have no problem on Windows 7 here, but the PC where we have the problem is running on Windows 10. Although I can't imagine why this would make a difference I also tried different PHP Versions - everything from from 5.4 to 7 beta - but to no avail.

11 years ago

Should make no difference if its windows7, 8 or 10. However it does matter what your using for your PHP. Each WAMP server system has it's own paths to these files.

11 years ago

I don't use any special WAMP Server as such. Only a simple PHP installation with path set. The GRAV sites seem to run fine, as do a lot of other databaseless systems.

when I try to install a theme... this is what I get:

Preparing to install Machine [v2.0.5]
|- Downloading package... 0%

[RuntimeException]
Error while trying to download 'https://github.com/nunopress/grav-theme-machine/zipball/v2.0.5'

I can call this by entering:
U:\GRAV-PHP\www\grav-blog>.... ools\php\php.exe bin\gpm install machine

or (PHP is also in my path)
U:\GRAV-PHP\www\grav-blog>php.exe bin\gpm install machine

or even:
U:\GRAV-PHP\www\grav-blog>bin\gpm install machine
since there's also a batch gpm.cmd inside the bin folder.

php version is currently: 5.4.45, but up to 5.6.x it's the same problem.
Am I missing a certain PHP module here?

11 years ago

Finally I found it. It seems the PHP openssl extension was missing here. Andy, couldn't you check for the essential PHP modules in your scripts and warn us if those libs aren't loaded?
I guess this also prevents the admin GUI from working (Had no warning here either).
Cheers
Nick

11 years ago

ensure extension=ext/php_opensll.dll enabled in whereever:\php\php.ini

php bin/gpm install whatever

11 years ago

Well.... This is what we just talked about isn't it

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1350 9 years ago
Archive · by Muut Archive, 9 years ago
2 935 9 years ago
Archive · by Muut Archive, 9 years ago
2 4061 9 years ago
Archive · by Muut Archive, 9 years ago
1 2948 9 years ago
Archive · by Muut Archive, 9 years ago
3 1119 9 years ago