Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error installing on windows 7 #1669

Closed
0wnrepo opened this issue Feb 12, 2016 · 22 comments
Closed

Error installing on windows 7 #1669

0wnrepo opened this issue Feb 12, 2016 · 22 comments
Assignees
Milestone

Comments

@0wnrepo
Copy link
Contributor

0wnrepo commented Feb 12, 2016

1.Download php 5.6 from http://windows.php.net/downloads/releases/php-5.6.18-Win32-VC11-x86.zip

2.Unzip

3.Open php.ini-production and add :

extension = php_openssl.dll
extension = php_curl.dll
extension_dir = "ext"

4.save as php.ini
5.Download and install https://getcomposer.org/download/
6.Open cmd.exe and create a new folder where your installation will reside, on desktop for example :

$ cd Desktop
$ mkdir wallatest
$ cd wallatest

7.Set environment variable

set SYMFONY_ENV=prod
composer create-project wallabag/wallabag wallabag "2.0.*@alpha" --no-dev

9.After you finish this step, run

php bin/console wallabag:install --env=prod

It will throw an exception :

Installing Wallabag...

Step 1 of 4. Checking system requirements.
+---------+--------+----------------+
| Checked | Status | Recommendation |
+---------+--------+----------------+
| PCRE    | OK!    |                |
| DOM     | OK!    |                |
+---------+--------+----------------+
Success! Your system can run Wallabag properly.

Step 2 of 4. Setting up database.
Creating database and schema, clearing the cache
The command "doctrine:database:create" terminated with an error code: 1.


  [Exception]
  The command "doctrine:database:create" terminated with an error code: 1.

Any thoughts ?

@tcitworld
Copy link
Member

Can you run php bin/console doctrine:database:create and post it's output?

@0wnrepo
Copy link
Contributor Author

0wnrepo commented Feb 12, 2016

Could not create database C:\Users\ed\Desktop\testing\wallabag\app/../data/d
b/wallabag.sqlite for connection named default
An exception occured in driver: could not find driver

@tcitworld
Copy link
Member

You need to activate the php_sqlite extension.

@0wnrepo
Copy link
Contributor Author

0wnrepo commented Feb 12, 2016

First activated php_sqlite3.dll - didn't work
Then activated php_pdo_sqlite.dll - it worked. (i need to see if it's a combination of these, or only the last one)

date.timezone = "Europe/Paris"

It looks like this :
https://imgur.com/n7PT83Z
https://imgur.com/xNbdp9a

@tcitworld
Copy link
Member

Did you do a wallabag:install again ?

@0wnrepo
Copy link
Contributor Author

0wnrepo commented Feb 12, 2016

Yes, I'll do a fresh install right now..

EDIT: Finished it, it looks the same.
EDIT2 :

    Skipped installation of bin bin/doctrine for package doctrine/orm: name conf
licts with an existing file
    Skipped installation of bin bin/doctrine.php for package doctrine/orm: name
conflicts with an existing file
    Skipped installation of bin security-checker for package sensiolabs/security
-checker: name conflicts with an existing file
  - Installing stof/doctrine-extensions-bundle (dev-master 6672ca3)
    Cloning 6672ca37fe19a8e2a8ae52a93a7163e1b00ef7d5
    Failed to download stof/doctrine-extensions-bundle from source: Failed to cl
one git@github.com:stof/StofDoctrineExtensionsBundle.git, git was not found, che
ck that it is installed and in your PATH env.

@j0k3r
Copy link
Member

j0k3r commented Feb 12, 2016

Well, it seems you need to install git when composer fail to download the zip package.

Could you try:

composer create-project wallabag/wallabag wallabag "2.0.*@alpha" --no-dev --prefer-dist

@0wnrepo
Copy link
Contributor Author

0wnrepo commented Feb 12, 2016

[RuntimeException]
An error occurred when executing the ""cache:clear --no-warmup"" command:
 // Clearing the cache for the prod environment with debug false


  [Symfony\Component\Filesystem\Exception\IOException]

  Failed to remove directory "C:\Users\ed\Desktop\testing\wallabag\var\
ca
  che\pro~\annotations".

It didn't download anything, it used everything from "cache". How can i reset this, so it always downloads everything ?

Installing wallabag/wallabag (2.0.0-alpha.2)
  - Installing wallabag/wallabag (2.0.0-alpha.2)
    Loading from cache
....

@tcitworld
Copy link
Member

The command is composer clear-cache.

@0wnrepo
Copy link
Contributor Author

0wnrepo commented Feb 12, 2016

Should I install git and ignore this path (--prefer-dist) ?

EDIT: trying fresh install with clear-cache
EDIT2: same result, no more exceptions, but it looks like in the pics.
EDIT3: trying with git-scm configured with cmd.exe and

composer create-project wallabag/wallabag wallabag "2.0.*@alpha" --no-dev

EDIT4: failed because something related to encryption and corporate firewall. Trying with --prefer-dist
http://pastebin.com/th8a8ATq
EDIT 5: looks the same :-( trying with dev branch... with the help from #1617

php -d memory_limit=-1 C:\ProgramData\ComposerSetup\bin\composer.phar create-project wallabag/wallabag wallabag "2.x-dev" --no-dev --prefer-dist

EDIT6:
When this finishes, i'll try the with no --prefer-dist.
Found this http://stackoverflow.com/a/32080571/1889814
Find .gitconfig with where .gitconfig
Add the following into it :

[url "https://"]
    insteadOf = git://
[url "https://github.com"]
    insteadOf = git@github.com

EDIT7: It worked !

php -d memory_limit=-1 C:\ProgramData\ComposerSetup\bin\composer.phar create-project wallabag/wallabag wallabag "2.x-dev" --no-dev --prefer-dist

EDIT8: trying the above changes
nope, it doesn't work behind my proxy. I'll try from another location maybe. But it's enough, the command from EDIT7 worked. That's it. Case closed, sort of, it doesn't work on "2.0.*@alpha"

@j0k3r
Copy link
Member

j0k3r commented Feb 12, 2016

2.x-dev -> latest commits
2.0.*@alpha -> latest tagged release (actually alpha2)

We definitely need to package each version with all deps as a zip file. Because I guess we'll get more error like that ...
Looks like you finally found a solution. I'm glad you did!

@0wnrepo
Copy link
Contributor Author

0wnrepo commented Feb 12, 2016

Aren't the licenses of the deps restrictive for redistribution ?

@j0k3r
Copy link
Member

j0k3r commented Feb 14, 2016

I don't really know but I don't think so. Why?

@0wnrepo
Copy link
Contributor Author

0wnrepo commented Feb 15, 2016

You mentioned :

We definitely need to package each version with all deps as a zip file.

@j0k3r
Copy link
Member

j0k3r commented Feb 15, 2016

We'll need to check that.

@tcitworld
Copy link
Member

As of today, on the v2 branch (some of these packages may not be used any more, I didn't clean before).

Package Licence
behat/transliterator Artistic 1.0
CraueConfigBundle MIT
doctrine/annotations MIT
doctrine/cache MIT
doctrine/collections MIT
doctrine/common MIT
doctrine/dbal MIT
doctrine/doctrine-bundle MIT
doctrine/doctrine-cache-bundle MIT
doctrine/doctrine-migrations-bundle MIT
doctrine/inflector MIT
doctrine/instantiator MIT
doctrine/lexer MIT
doctrine/migrations LGPL-2.1
doctrine/orm MIT
ezyang/htmlpurifier LGPL
friendsofsymfony/oauth-server-bundle MIT
friendsofsymfony/oauth2-php MIT
friendsofsymfony/rest-bundle MIT
friendsofsymfony/user-bundle MIT
gedmo/doctrine-extensions MIT
grandt/binstring LGPL-2.1
grandt/phpepub LGPL-2.1
grandt/phpresizegif LGPL-2.1
grandt/phpzipmerge LGPL-2.1
grandt/relativepath LGPL-2.1
guzzlehttp/guzzle MIT
guzzlehttp/ringphp MIT
guzzlehttp/streams MIT
hoa/compiler BSD-3-Clause
hoa/consistency BSD-3-Clause
hoa/event BSD-3-Clause
hoa/exception BSD-3-Clause
hoa/file BSD-3-Clause
hoa/iterator BSD-3-Clause
hoa/math BSD-3-Clause
hoa/protocol BSD-3-Clause
hoa/regex BSD-3-Clause
hoa/ruler BSD-3-Clause
hoa/stream BSD-3-Clause
hoa/ustring BSD-3-Clause
hoa/visitor BSD-3-Clause
hoa/zformat BSD-3-Clause
htmlawed/htmlawed GPL-2.0+ or LGPL-3.0
incenteev/composer-parameter-handler MIT
j0k3r/graby AGPL-3.0
j0k3r/graby-site-config AGPL-3.0
j0k3r/php-readability Apache-2.0
j0k3r/safecurl MIT
jdorn/sql-formatter MIT
jms/metadata Apache
jms/parser-lib Apache2
jms/serializer Apache2
jms/serializer-bundle Apache2
kphoen/rulerz MIT
kphoen/rulerz-bundle MIT
kriswallsmith/assetic MIT
lexik/form-filter-bundle MIT
liip/theme-bundle MIT
mgargano/simplehtmldom MIT
michelf/php-markdown BSD-3-Clause
monolog/monolog MIT
neitanod/forceutf8 BSD-3-Clause
nelmio/api-doc-bundle MIT
nelmio/cors-bundle MIT
ocramius/proxy-manager MIT
pagerfanta/pagerfanta MIT
paragonie/random_compat MIT
phpcollection/phpcollection Apache2
phpoption/phpoption Apache2
phpzip/phpzip LGPL-2.1
psr/log MIT
react/promise MIT
scheb/two-factor-bundle MIT
sensio/distribution-bundle MIT
sensio/framework-extra-bundle MIT
sensiolabs/security-checker MIT
simplepie/simplepie BSD-3-Clause
smalot/pdfparser GPL-3.0
sonata-project/google-authenticator MIT
stof/doctrine-extensions-bundle MIT
swiftmailer/swiftmailer MIT
symfony/assetic-bundle MIT
symfony/monolog-bundle MIT
All of Symfony MIT-licenced
tecnickcom/tcpdf LGPLv3
twig/extensions MIT
twig/twig BSD-3-Clause
wallabag/php-mobi Apache-2.0
willdurand/hateoas MIT
willdurand/hateoas-bundle MIT
willdurand/jsonp-callback-validator MIT
willdurand/negotiation MIT
zendframework/zend-code BSD-3-Clause
zendframework/zend-eventmanager BSD-3-Clause
Dev package (not for redistribution) Licence
doctrine/data-fixtures MIT
doctrine/doctrine-fixtures-bundle MIT
phpdocumentor/reflection-docblock MIT
phpspec/prophecy MIT
phpunit/php-code-coverage BSD-3-Clause
phpunit/php-file-iterator BSD-3-Clause
phpunit/php-text-template BSD-3-Clause
phpunit/php-timer BSD-3-Clause
phpunit/php-token-stream BSD-3-Clause
phpunit/phpunit BSD-3-Clause
phpunit/phpunit-mock-objects BSD-3-Clause
sebastian/comparator BSD-3-Clause
sebastian/diff BSD-3-Clause
sebastian/environment BSD-3-Clause
sebastian/exporter BSD-3-Clause
sebastian/global-state BSD-3-Clause
sebastian/recursion-context BSD-3-Clause
sebastian/version BSD-3-Clause
sensio/generator-bundle MIT
symfony/phpunit-bridge MIT

@j0k3r
Copy link
Member

j0k3r commented Feb 16, 2016

Seems to be Revised BSD, aka BSD-3-Clause: neitanod/forceutf8@546fe2b

@tcitworld
Copy link
Member

Yup. So we're good.

@nicosomb
Copy link
Member

@tcitworld What do we need with this issue? Where can we store your work about dependancies & licenses?

@tcitworld
Copy link
Member

On the page we were talking about where we could list translators, contributors & dependencies.

@baptistedonaux
Copy link

Same fail with 2.0.0-beta.1

 Fatal error: Uncaught RuntimeException: Setting "wallabag_support_url" couldn't be found. in /wallabag/vendor/craue/config-bundle/Util/Config.php:139 Stack trace: #0 /wallabag/vendor/craue/config-bundle/Util/Config.php(42): Craue\ConfigBundle\Util\Config->createNotFoundException('wallabag_suppor...') #1 /wallabag/src/Wallabag/UserBundle/Mailer/AuthCodeMailer.php(72): Craue\ConfigBundle\Util\Config->get('wallabag_suppor...') #2 /wallabag/var/cache/prod/appProdProjectContainer.php(2214): Wallabag\UserBundle\Mailer\AuthCodeMailer->__construct(Object(Swift_Mailer), Object(Twig_Environment), 'no-reply@wallab...', NULL, Object(Craue\ConfigBundle\Util\Config)) #3 /wallabag/var/bootstrap.php.cache(2103): appProdProjectContainer->getWallabagUser_AuthCodeMailerService() #4 /wallabag/var/cache/prod/appProdProjectContainer.php(1583): Symfony\Component\DependencyInjection\Container->get('wallabag_user.a...') #5 /wallabag/var/bootstrap.php.cache(2103): appProdProjectContainer->getSchebTwoFactor_Security_Email_CodeGeneratorService() #6 in /wallabag/vendor/craue/config-bundle/Util/Config.php on line 139

@j0k3r
Copy link
Member

j0k3r commented Mar 2, 2016

Care to elaborate a bit more in a separate issue? Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants