Why do I get the following error installing gittfs? - git-tfs

I am using the following command via choclaty to install gittfs.
cinst gittfs
Seems to go okay until I get the following error:
Write-Error : gittfs did not finish successfully. Boo to the chocolatey gods!
-----------------------
[ERROR] Cannot bind argument to parameter 'Path' because it is an empty string.
-----------------------
Boo indeed, what path parameter are they talking about?

This is a known issue in chocolatey v0.9.8.23 that occurs when you install it and don't close and reopen the shell. See https://github.com/chocolatey/chocolatey/issues/371 for more information.
As a workaround, you just need to close and reopen the shell.

Related

Why is 7-Zip failing during this Chocolatey installation on Windows 10?

I am trying to install Chocolatey
https://chocolatey.org/install
and using the command:
#"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
It is showing error:
Unable to unzip package using 7zip. Perhaps try setting $env:chocolateyUseWindowsCompression = 'true' and call install
again. Error: 7-Zip encountered a fatal error while extracting the files
At line:221 char:9
+ 2 { throw "$errorMessage 7-Zip encountered a fatal error while ex ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (Unable to unzip...cting the files:String) [], RuntimeException
+ FullyQualifiedErrorId : Unable to unzip package using 7zip. Perhaps try setting $env:chocolateyUseWindowsCompres
sion = 'true' and call install again. Error: 7-Zip encountered a fatal error while extracting the files
I have 7zip installed.
I encounter the same issue.
Running window cmd as administrator may be a solution for some but in my case i had to update my window system environment variable,
I just added this to exiting value on
path: $env:chocolateyUseWindowsCompression = 'true'
and all works just fine.
I had the same error when I was trying to install chocolatey on multiple servers which was finally getting blocked at chocolatey server, which is a chocolatey feature.
https://chocolatey.org/docs/community-packages-disclaimer#rate-limiting
Hence the downloaded file is null and cannot be unzipped. The block is lifted an hour later. After rate limit is lifted, the errors disappears until you trigger it again.
Rate limiting also applies to other packages. When limit is hit while downloading a package other than chocolatey itself, you will get an error code 429.
https://chocolatey.org/docs/troubleshooting#im-getting-a-429-too-many-requests-issue-when-attempting-to-use-the-community-package-repository
First answer: Running window cmd as administrator may be a solution for some but in my case i had to update my window system environment variable, I just added this to exiting value on path: $env:chocolateyUseWindowsCompression = 'true' and all works just fine.
may not work immediately and you still receive "Unable to unzip package using 7zip." error.
Try again after restarting your machine. In my case command works after restarting.
Thx
karam
After a few months, i ran the same command from cmd with Administrative Privilege and it worked. The main point was running
cmd.exe As an Administrator.

'missing destination file operand' error while attempting 'stack exec install ...'

I am attempting to install Hackage's servant-auth-server package using stack exec install servant-auth-server, which has worked for me with other packages.
However, with servant-auth-server I get an error.
$ stack exec install servant-auth-server
/run/current-system/sw/bin/install: missing destination file operand after 'servant-auth-server'
Try '/run/current-system/sw/bin/install --help' for more information.
What is the cause of this error?
How can I install servant-auth-server?
EDIT
Running the command $ stack install servant-auth-server also does not work as shown below.
$ stack install servant-auth-server
Error: While constructing the build plan, the following exceptions were encountered:
In the dependencies for servant-auth-server-0.3.0.0:
servant-auth must match ==0.2.*, but the stack configuration has no specified version (latest applicable is 0.2.7.0)
Recommended action: try adding the following to your extra-deps in /home/matthew/.stack/global-project/stack.yaml:
- servant-auth-0.2.7.0
You may also want to try the 'stack solver' command
Plan construction failed.
The command likely ought to be stack install servant-auth-server

Clojure fireplace in vim asking for python

Trying to get get fireplace set up in vim but having trouble with some error messages.
When I type cpr in a clojure buffer the following error shows up:
Error detected while processing function <SNR>53_RunTests..fireplace#capture_te
st_run..<SNR>53_eval..fireplace#client..fireplace#platform..fireplace#register_
port_file..fireplace#nrepl_connection#open..fireplace#nrepl#for..<SNR>75_nrepl_
process..<SNR>75_nrepl_message..<SNR>75_nrepl_call..<SNR>74_nrepl_transport_cal
l..<SNR>74_nrepl_transport_dispatch:
line 6:
E605: Exception not caught: nREPL: zsh:1: command not found: python^#
Error detected while processing function <SNR>53_RunTests..fireplace#capture_te
st_run..<SNR>53_eval..fireplace#client..fireplace#platform:
line 9:
E171: Missing :endif
The thing I understand is that it cant find python. In my shell I can start python with the python command which will fire up 3.4.2.
Im using nixos
:echo has('python') returns 0
echo $PATH and :! echo $PATH return the same path.
What can I try in order to find what is actually causing this error?
You have to install/compile vim with python support for vim-fireplace to work, and this may not be the default on your system. I believe typing :help python will do this for you. If you don't get anything, you may have to recompile vim with python support, for which I'll direct you towards Google for now.
Another option if you have pip installed is to consider switching to neovim. Installing neovim with pip install neovim will get you python support. I've been using neovim lately, and it's worked pretty well for me.

Error -60005 when install Cocos2d-iPhone v3 RC4

When I try to install Cocos2d-iphone 3.0.0 RC4, I got an error: (run without sudo)
Error -60005 occurred while executing script with privileges.
So, I try to show its package content and use terminal to do: cd ...Cocos2D Installer 3.0.0.app/Contents/MacOS
I try this command: (with sudo)
sudo ./Cocos2D\ Installer\ 3.0.0
It works but I got log with some errors:
[1m>>> Installing Cocos2D-v3.0.0 files (B[m
[1m>>> Installing Cocos2D-v3.0.0 templates (B[m
[4m[1mCocos2D Template Installer (Cocos2D-v3.0.0)(B[m
Error: [31m✖︎(B[m Script cannot be executed as root.
In order for it to work properly, please execute the script again without 'sudo'.
If you want to know more about how to use this script execute '/Users/viethung/Downloads/Cocos2D-v3.0.0/install.sh --help'.
[1m>>> Building/Installing Cocos2D-v3.0.0 documentation, this may take a minute.... (B[m
appledoc version: 2.2 (build 963)
Generation step 4/5 failed: GBDocSetInstallGenerator failed generating output, aborting!
Documentation set was installed, but couldn't reload documentation within Xcode.
Xcode got an error: No documentation set present at specified path.
[1m>>> Cocos2D-v3.0.0 installation complete! (B[m
Are there any way is better than this way?
I have same problem.
I think you installed old cocos2d-iphone and it caused this problem.
You should remove old cocos2d-iphone first. I removed:
~/Library/Developer/Xcode/cocos2d v3.x
And install again. It works for me.
Hope it works for you :)

Can't install PDQ tool for R on windows

I've been trying for half an hour following this simple guide http://www.perfdynamics.com/Tools/PDQcode.html#tth_sEc1.1.1
It simply throws this error:
> install.packages("C:\\Users\\Neven\\Downloads\\pdq_6.0-1.tar.gz",repos=NULL,type="source")
Warning: invalid package 'C:/Users/Neven/Downloads/pdq_6.0-1.tar.gz'
Error: ERROR: no packages specified
Warning messages:
1: running command '"C:/PROGRA~1/R/R-30~1.2/bin/x64/R" CMD INSTALL -l "C:\ProgramFiles\R\R-3.0.2\library" "C:/Users/Neven/Downloads/pdq_6.0-1.tar.gz"' had status 1
2: In install.packages("C:\\Users\\Neven\\Downloads\\pdq_6.0-1.tar.gz", :
installation of package ‘C:/Users/Neven/Downloads/pdq_6.0-1.tar.gz’ had non-zero exit status
I've been searching for an answer on the website, trying different things but nothing did it.
I was copy/pasting the command from their documentation and it seems their documentation is out of date.
The command is:
install.packages("C:\\Users\\Neven\\Downloads\\pdq_6.0-1.tar.gz",repos=NULL,type="source")
Since there's a new version of R (6.1-1), it should be:
install.packages("C:\\Users\\Neven\\Downloads\\pdq_6.1-1.tar.gz",repos=NULL,type="source")
Really stupid mistake, but that's what solved the problem.

Resources