473,396 Members | 2,111 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

phpspecs is not working from command line, Windows

103 100+
O have tried somple Laravel project.

phpspecs is not working.

It is installed on:
C:\Users\Gintare\AppData\Roaming\Composer\vendor\p hpspec
But there is no phpspec file in:
C:\Users\Gintare\AppData\Roaming\Composer\vendor\b in

It is also installed to my project:
C:\Bitnami\wampstack-5.5.30-0\apache2\htdocs\lar_prog\comp\vendor\phpspec

there is phpspec file in:
C:\Bitnami\wampstack-5.5.30-0\apache2\htdocs\lar_prog\comp\vendor\phpspec\phps pec\bin

but it does not work from the command line:

c:\Bitnami\wampstack-5.5.30-0\apache2\htdocs\lar_prog\comp> \vendor\phpspec\phps
pec\bin\phpspec
The system cannot find the path specified.

c:\Bitnami\wampstack-5.5.30-0\apache2\htdocs\lar_prog\comp> .\vendor\phpspec\php
spec\bin\phpspec
'.\vendor\phpspec\phpspec\bin\phpspec' is not recognized as an internal or exter
nal command,
operable program or batch file.

I have also tried forward slashes and directory like "vendor/phpspec/phpspec/bin/phpspec. Nothing works.

PhpUnit is working, but it i can see its file in
C:\Users\Gintare\AppData\Roaming\Composer\vendor\b in

What can be done?
Oct 23 '15 #1
1 1641
gintare
103 100+
The solution was to reinstall phpspecs in Windows.

In the command line change working path to the folder "C:\Users\Gintare\AppData\Roaming\Composer". Your user will be not Gintare, but some other name.
Expand|Select|Wrap|Line Numbers
  1. c:\Bitnami\wampstack-5.5.30-0\apache2\htdocs\lar_prog\comp>cd C:\Users\Gintare\AppData\Roaming\Composer
Add a line describing the latest phpspec version to "C:\Users\Gintare\AppData\Roaming\Composer]composer.json"
Expand|Select|Wrap|Line Numbers
  1. {
  2.     "require": {
  3. ...
  4.         "phpspec/phpspec": "~2.1"
  5.     }
  6. }
  7.  
Run composer update from the %APPDATA folder:
Expand|Select|Wrap|Line Numbers
  1. C:\Users\Gintare\AppData\Roaming\Composer>composer update
And, of course, add the folder "C:\Users\Gintare\AppData\Roaming\Composer\vendor\ bin" to your windows PATH environment variable.

Now phpspecs command will run from any folder, thus you can change back to the project and run it

Expand|Select|Wrap|Line Numbers
  1. C:\Users\Gintare\AppData\Roaming\Composer>cd c:\Bit*\wamp*\apac*\ht*\lar_prog\co
  2. mp
  3.  
  4. c:\Bitnami\wampstack-5.5.30-0\apache2\htdocs\lar_prog\comp>phpspec
  5. phpspec version 2.3.0
  6.  
  7. Usage:
  8.   command [options] [arguments]
  9.  
  10. Options:
  11.   -h, --help            Display this help message
  12.   -q, --quiet           Do not output any message
  13.   -V, --version         Display this application version
  14.       --ansi            Force ANSI output
  15.       --no-ansi         Disable ANSI output
  16.   -n, --no-interaction  Do not ask any interactive question (disables code gener
  17. ation).
  18.   -c, --config=CONFIG   Specify a custom location for the configuration file
  19.   -v|vv|vvv, --verbose  Increase the verbosity of messages: 1 for normal output,
  20.  2 for more verbose output and 3 for debug
  21.  
  22. Available commands:
  23.   describe  Creates a specification for a class
  24.   help      Displays help for a command
  25.   list      Lists commands
  26.   run       Runs specifications
Oct 23 '15 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Christian Long | last post by:
Hi I'm trying to pipe data into a python program on Windows 2000, on the command line. Like this: dir | myProgram.py Here's what I tried:
1
by: Klaus Baumgarten | last post by:
Hi! I' m sitting here now for days and I still get no conclusion on my problem. I have an MS ACCESS .mdb File and I would like to export it with dtswiz.exe (from MS SQL Utility Tools) via...
4
by: Frank Rizzo | last post by:
I have a batch script that is supposed to compile this script: vbc.exe /main:Form1 /target:winexe...
4
by: Francesco Martinelli | last post by:
I need to create a multiple file assemby: this requires working directly with the command line compiler (no IDE support!). After a few tests I found my problem comes from the issue described below....
40
by: raphfrk | last post by:
I have a program which reads in 3 filenames from the command line prog filename1 filename2 filename3 However, it doesn't work when one of the filenames has spaces in it (due to a directory...
6
by: 31337one | last post by:
Hello all, I was wondering if there is a C/C++ command line parser that works for linux AND windows. . Anyways, the ideal parser im looking for should be able to support multiple arguments...
1
by: IanWright | last post by:
I've got a small application that spends quite a lot of time parsing through files/processing data that runs on a command line (Windows) or the Shell (Linux). I thought it would be a good idea to...
7
by: Jwe | last post by:
Hi, I've written a program which has both a command line interface and Windows form interface, however it isn't quite working correctly. When run from command line with no arguments it should...
2
by: orangemonkey | last post by:
I know you can use cd "name of file path" to change the address but I want the address to be a certain filepath once I open the command line to make things easier. How would you do that?
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.