Skip to content
This repository has been archived by the owner on Aug 7, 2022. It is now read-only.

Compilation on Ubuntu failing: cask not found #335

Closed
Nicholas-Autio-Mitchell opened this issue Nov 27, 2017 · 8 comments
Closed

Compilation on Ubuntu failing: cask not found #335

Nicholas-Autio-Mitchell opened this issue Nov 27, 2017 · 8 comments

Comments

@Nicholas-Autio-Mitchell

I got an error, which I have never had before on Ubuntu (I couldn't figure out a root cause), which I solved. Cask was not being found, so I had to install it as per the official Cask website, running:

$ curl -fsSL https://raw.githubusercontent.com/cask/cask/master/go | python

Here was the error I was getting:

$ make -s
Using Emacs 25.3 
make: cask: Command not found
Makefile:44: recipe for target '.cask/25.3' failed
make: *** [.cask/25.3] Error 127

Here are the relevant lines in Makefile:

42# Init cask                                                                                                                                        
43.cask/$(emacs_version):
44        cask install

The Cask file is in the cloned repository and all stated dependencies are met. This didn't happen on the same Ubuntu 16.04 system about 6 months back.

@Nicholas-Autio-Mitchell
Copy link
Author

Nicholas-Autio-Mitchell commented Apr 16, 2018

Five months later and I am getting the same issue as described above, but this time my fix isn't working.
I can make the cask command work by explicitly adding it's bin folder to my PATH, but now I get a different error:

config.status: creating config.h
config.status: config.h is unchanged
ar: `u' modifier ignored since `D' is the default (see `U')
epdfinfo-epdfinfo.o: In function `mktempfile':
/home/usr/src/pdf-tools/server/epdfinfo.c:354: warning: the use of `tempnam' is dangerous, better use `mkstemp'
Wrong number of arguments: #[(rcp version) "!�!�È	
\"�Ä\"�

(
ÊË$�(ÌÍ	
       \"�
          4ÎÏ
             \"�[
                 GÐU�G�
                       @@	$�[Ð
                                    GW�X�
                                         	$�[ÎÓ!,�" [rcp source-dir file-specs files name package-build-default-files-spec package-recipe--working-tree package-build--config-file-list package-build-expand-file-specs eieio-oref ...] 6 ("/home/user/.emacs.d/.cask/25.3/bootstrap/package-build-20180414.938/package-build.elc" . 30211)], 5
Makefile:24: recipe for target 'pdf-tools-0.90.tar' failed
make: *** [pdf-tools-0.90.tar] Error 255

@djrmarques
Copy link

I am getting the exact same error too. Anyone found a fix?

@CaptainTux
Copy link

same here.

@politza
Copy link
Owner

politza commented Apr 29, 2018

Looks like this cask issue is responsible.

@CaptainTux
Copy link

i am using arch linux and installed cask via AUR.
and it did not help, but i found a workaround by just installing via melpa.
all i needed to do was M-x package-refresh-contents and then M-x package-install pdf-tools.
not sure if that's the best way but worked for me

@takedawilliam
Copy link

@nicholas-mitchell if you're on ArchLinux, use cask-git package instead of cask. It will solve the problem

@politza politza closed this as completed Oct 19, 2018
@berkay-repos
Copy link

berkay-repos commented Aug 10, 2019

Installing cask from the git repository fixed it for me.
$ curl -fsSL https://raw.githubusercontent.com/cask/cask/master/go | python

@pepa65
Copy link

pepa65 commented Mar 3, 2022

I'm on Ubuntu 20.04 and the suggested fixes didn't work. This did work:

wget -O getcask raw.githubusercontent.com/cask/cask/master/go
python getcask
export PATH="~/.cask/bin:$PATH"
make -s

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

No branches or pull requests

7 participants