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

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

Related

When I try stack setup, ghc gives a sanity-check error and will not compile

I had a working stack project. After experimenting with cabal-install, when I tried to use stack again I had errors. So in trying to restore my system, I deleted the global .cabal file, not realizing that stack uses it. When on run stack setup on my project I get the following:
Downloaded lts-13.23 build plan.
Preparing to install GHC to an isolated location.
This will not interfere with any system-level installation.
Downloaded ghc-8.6.5.
Installed GHC.
The GHC located at /home/bruce/.stack/programs/x86_64-linux/ghc-8.6.5/bin/ghc failed to compile a sanity check. Please see:
http://docs.haskellstack.org/en/stable/install_and_upgrade/
for more information. Exception was:
Received ExitFailure 1 when running
Raw command: /home/bruce/.stack/programs/x86_64-linux/ghc-8.6.5/bin/ghc /tmp/stack-sanity-check14961/Main.hs -no-user-package-db
Run from: /tmp/stack-sanity-check14961/
Standard error:
Loaded package environment from /home/bruce/.ghc/x86_64-linux-8.6.5/environments/default
ghc: can't find a package database at /home/bruce/.cabal/store/ghc-8.6.5/package.db
How can return to a working stack installation?

Unable to change GO version in PhotonOS

I have deployed PhotonOS using directions from photon and VIC configuration, while running command docker run -v $(pwd):/go/src/github.com/vmware/vic \-w /go/src/github.com/vmware/vic golang:1.6 make all
an Error appears:
Please install go1.7 (found: go version go1.6.3 linux/amd64)
Makefile:152: recipe for target 'goversion' failed
make: *** [goversion] Error 1
`
to solve it I have tried to update
go1.6.3 to go1.7 using solution - changeing go version manually
after steps go version is showing go1.4.2, but the previous error still complains on go version 1.6.3.
Also, I have tried to install "gvm" using bash < <(curl -s -S -L https://raw.github.com/moovweb/gvm/master/binscripts/gvm-installer) , whenever I try to call gvm install go1.7 it brings
-bash: gvm: command not found
whenever I retry running gvm-installer it says
ERROR: Already installed!
Any help is highly appreciated!!
use :
docker run -v $(pwd):/go/src/github.com/vmware/vic \-w /go/src/github.com/vmware/vic golang:1.7 make all
command instead, that will work on PhotonOS

Getting Unknown flag: -v when i run protoc -version in my ubuntu

I'm getting the following message when i run protoc -version in my ubuntu terminal.
Unknown flag: -v
Earlier to this, I had got the following error when I ran protoc -version. I found a solution through google and ran "sudo ldconfig /usr/local/lib". After running that, I'm getting the Unknown flag message as mentioned above. Can anyone help me to resolve this? Thanks in advance.
protoc: error while loading shared libraries: libprotoc.so.9: cannot open shared object file: No such file or directory
Long flags require two dashes. Try:
protoc --version
(Common Unix convention says that if you write -abc (with one dash), it means the same thing as -a -b -c, which is why you get the error saying that there is no flag -v. Admittedly, there are a lot of Unix programs that don't follow this rule, but protoc does follow it.)

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 :)

Install external package in Google Go

I was trying to install external packages in GO language. I've found many external packages at http://godashboard.appspot.com/package.
I am working on windows system.
I tried this command to install go-router package.
goinstall go-router.googlecode.com/svn/trunk
This resulted in following error....
C:\cygwin\bin\bash.exe: === cd c:\go\src\pkg\go-router.googlecode.com\svn\trunk;
bash gomake -f- install
/cygdrive/c/go/bin/gomake: line 3: exec: make: not found
--- exit status 127
goinstall: go-router.googlecode.com/svn/trunk: install: running bash: exit status 127
I am unable to find out the reason for the error and the meaning of status code. I've read the goinstall command description but no luck..
It seems make command is missing. Make sure it's installed and that PATH variable is defined correctly.

Resources