Unix & Linux Stack Exchange
Q&A for users of Linux, FreeBSD and other Unix-like operating systems
Latest Questions
5
votes
3
answers
9154
views
How to install Pandoc on ArchLinux
Does anyone have suggestions about how to install pandoc on Arch? I am trying to install pandoc-static from here: https://aur.archlinux.org/packages/pandoc-static/, although it appears to be conflicting with my xmonad installation (I use xmonad as a TWM): [grease-lightning]/home/.../builds/pandoc-st...
Does anyone have suggestions about how to install pandoc on Arch? I am trying to install pandoc-static from here: https://aur.archlinux.org/packages/pandoc-static/ , although it appears to be conflicting with my xmonad installation (I use xmonad as a TWM):
[grease-lightning]/home/.../builds/pandoc-static$ makepkg -s
==> Making package: pandoc-static 1.15.0.6-1 (Sun Aug 16 23:18:48 PDT 2015)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Found pandoc-static-1.15.0.6-1.tar.xz
-> Found pandoc-static-1.15.0.6-1.tar.xz.sig
==> Validating source files with sha512sums...
pandoc-static-1.15.0.6-1.tar.xz ... Passed
pandoc-static-1.15.0.6-1.tar.xz.sig ... Skipped
==> Verifying source file signatures with gpg...
pandoc-static-1.15.0.6-1.tar.xz ... Passed
==> Extracting sources...
-> Extracting pandoc-static-1.15.0.6-1.tar.xz with bsdtar
==> Starting prepare()...
==> Removing existing $pkgdir/ directory...
==> Starting build()...
-> Skipping List-0.5.2
-> Skipping SHA-1.6.4.2
-> Skipping base64-bytestring-1.0.0.1
-> Skipping byteable-0.1.1
-> Skipping cereal-0.4.1.1
-> Skipping cmdargs-0.10.13
-> Building data-default-class-0.0.1
Warning: The package list for 'hackage.haskell.org' does not exist. Run 'cabal
update' to download it.
Resolving dependencies...
In order, the following would be installed:
data-default-class-0.0.1 (reinstall)
cabal: The following packages are likely to be broken by the reinstalls:
data-default-instances-old-locale-0.0.1
data-default-0.5.3
X11-1.6.1.2
xmonad-contrib-0.11.4
xmonad-0.11.1
X11-xft-0.3.1
data-default-instances-dlist-0.0.1
data-default-instances-containers-0.0.1
data-default-instances-base-0.0.1
Use --force-reinstalls if you want to install anyway.
==> ERROR: A failure occurred in build().
Aborting...
I am afraid of breaking my xmonad TWM if I force the reinstall. What should I do?
Perhaps I should install Pandoc via
sudo cabal install --global pandoc
? If so, how should I install cabal
? I was thinking that I should download it from here: https://www.haskell.org/cabal/download.html
Any suggestions or recommendations are appreciated. I am also happy to clarify anything.
modulitos
(3275 rep)
Aug 17, 2015, 06:58 AM
• Last activity: May 3, 2023, 01:48 PM
1
votes
0
answers
192
views
Error when updating "cabal-install" from cabal cli
I was following [this](https://www.haskell.org/cabal/) tutorial on how to install `cabal` on linux. So far, I successfully installed `cabal-install` from `apt`: ```zsh sudo apt install cabal-install ``` However, at the step where they upgrade `cabal` with `cabal` itself, I encounter this error: ```l...
I was following [this](https://www.haskell.org/cabal/) tutorial on how to install
cabal
on linux.
So far, I successfully installed cabal-install
from apt
:
sudo apt install cabal-install
However, at the step where they upgrade cabal
with cabal
itself, I encounter this error:
$ cabal install cabal-install Cabal
Resolving dependencies...
Configuring Cabal-3.0.0.0...
Failed to install Cabal-3.0.0.0
Build log ( /home/abstrack/.cabal/logs/Cabal-3.0.0.0.log ):
cabal: Error: some packages failed to install:
Cabal-3.0.0.0 failed during the configure step. The exception was:
user error ('/usr/bin/ghc' exited with an error:
/tmp/cabal-tmp-25404/Cabal-3.0.0.0/Distribution/Parsec.hs:134:0:
error: missing binary operator before token "("
#if !(MIN_VERSION_base(4,13,0))
^
)
cabal-install-3.0.0.0 depends on Cabal-3.0.0.0 which failed to install.
hackage-security-0.5.3.0 depends on Cabal-3.0.0.0 which failed to install.
I couldn't find exactly
Cabal-3.0.0.0/Distribution/Parsec.hs:134:0:
(line 9 of the log) on google.
I tried to install only cabal-install
and Cabal
separately with the cabal
cli, but I got the exact same error each time.
How do I work around this error and successfully update cabal
?
ljleb
(113 rep)
Nov 19, 2019, 12:41 AM
2
votes
1
answers
338
views
cabal update causes segmentation fault on FreeBSD 10.2
I have installed `FreeBSD 10.2-RELEASE` 32-bit and I am trying to use Haskell on it. I have installed package `ghc-7.10.2` with `pkg` and then installed package `hs-cabal-install-1.22.6.0` from `/usr/ports/devel/hs-cabal-install`. Now, when I run `cabal update` I get: $ cabal update Downloading the...
I have installed
FreeBSD 10.2-RELEASE
32-bit and I am trying to use Haskell on it.
I have installed package ghc-7.10.2
with pkg
and then installed package hs-cabal-install-1.22.6.0
from /usr/ports/devel/hs-cabal-install
.
Now, when I run cabal update
I get:
$ cabal update
Downloading the latest package list from hackage.haskell.org
Segmentation fault (core dumped)
Running it as root causes the same problem.
I have been searching on different search engines but found no article describing this specific problem. Can you give me some hint on how to solve this problem or where I can find some documentation about it?
Giorgio
(847 rep)
Jan 23, 2016, 08:43 AM
• Last activity: Jan 27, 2016, 09:41 PM
9
votes
1
answers
434
views
cabal dies on NixOS in KVM
I set up a NixOS system on KVM and installed the haskelPlatform package. Everything works fine, ghci works fine, but cabal dies without any helpful error message: [michas@nix:~]$ type -a cabal cabal is /run/current-system/sw/bin/cabal [michas@nix:~]$ cabal --version cabal-install version 1.16.0.2 us...
I set up a NixOS system on KVM and installed the haskelPlatform package.
Everything works fine, ghci works fine, but cabal dies without any helpful error message:
[michas@nix:~]$ type -a cabal
cabal is /run/current-system/sw/bin/cabal
[michas@nix:~]$ cabal --version
cabal-install version 1.16.0.2
using version 1.16.0 of the Cabal library
[michas@nix:~]$ cabal update
Downloading the latest package list from hackage.haskell.org
Aborted
[michas@nix:~]$ cabal update -v3
Downloading the latest package list from hackage.haskell.org
Sending:
GET /packages/archive/00-index.tar.gz HTTP/1.1
Host: hackage.haskell.org
User-Agent: cabal-install/1.16.0.2
Creating new connection to hackage.haskell.org
Received:
HTTP/1.1 200 OK
Date: Thu, 19 Sep 2013 17:28:04 GMT
Server: Apache/2.2.9 (Debian) mod_python/3.3.1 Python/2.5.2
Last-Modified: Thu, 19 Sep 2013 16:01:27 GMT
ETag: "1888006-641488-4e6beaa9663c0"
Accept-Ranges: bytes
Content-Length: 6558856
Content-Type: application/x-tar
Content-Encoding: x-gzip
Downloaded
to /home/michas/.cabal/packages/hackage.haskell.org/00-index.tar.gz
Aborted
[michas@nix:~]$ strace cabal update
[...]
close(9) = 0
lstat("/home/michas/.cabal/packages/hackage.haskell.org/00-index.tar5861.tmp",
{st_mode=S_IFREG|0644, st_size=104366080, ...}) = 0
rename("/home/michas/.cabal/packages/hackage.haskell.org/00-index.tar5861.tmp",
"/home/michas/.cabal/packages/hackage.haskell.org/00-index.tar") = 0
--- SIGVTALRM {si_signo=SIGVTALRM, si_code=SI_TIMER, si_pid=0,
si_uid=18, si_value=0} --- rt_sigreturn() = 0
--- SIGVTALRM {si_signo=SIGVTALRM, si_code=SI_TIMER, si_pid=0,
si_uid=0, si_value=0} --- rt_sigreturn() =
139968722321408
stat("/home/michas/.cabal/packages/hackage.haskell.org/00-index.cache",
{st_mode=S_IFREG|0644, st_size=1058094, ...}) = 0
stat("/home/michas/.cabal/packages/hackage.haskell.org/00-index.tar",
{st_mode=S_IFREG|0644, st_size=104366080, ...}) = 0
stat("/home/michas/.cabal/packages/hackage.haskell.org/00-index.cache",
{st_mode=S_IFREG|0644, st_size=1058094, ...}) = 0 --- SIGVTALRM
{si_signo=SIGVTALRM, si_code=SI_TIMER, si_pid=0, si_uid=0, si_value=0}
--- rt_sigreturn() = 0
rt_sigprocmask(SIG_UNBLOCK, [ABRT], NULL, 8) = 0 tgkill(5861, 5861,
SIGABRT) = 0 --- SIGABRT {si_signo=SIGABRT,
si_code=SI_TKILL, si_pid=5861, si_uid=1000} --- +++ killed by SIGABRT
+++ Aborted
[michas@nix:~]$
The VM has no swap, but 2GB of RAM. No hints in
dmesg
.
Any idea what is going on?
(On another NixOS installation on a VirtualBox-based VM this works without problems.)
michas
(21872 rep)
Sep 20, 2013, 04:37 PM
• Last activity: Jan 10, 2016, 02:49 PM
2
votes
1
answers
1114
views
Cabal using older version when newer is installed
I've just installed and updated cabal, but it is still using the original version (1.16.0.2) instead of the updated 1.22.4.0. The commands I have run, after installation through apt-get: ```$ cabal update $ cabal install cabal-install cabal``` This built and installed the new version of cabal-instal...
I've just installed and updated cabal, but it is still using the original version (1.16.0.2) instead of the updated 1.22.4.0. The commands I have run, after installation through apt-get:
$ cabal update
$ cabal install cabal-install cabal
This built and installed the new version of cabal-install and cabal as was expected, but when I do cabal --v
it still prints:
$ cabal --v
cabal-install version 1.16.0.2
using version 1.16.0 of the Cabal library
What could be wrong here? My $PATH variable is:
$ echo $PATH
/home/user/.rvm/gems/ruby-2.2.2/bin:/home/user/.rvm/gems/ruby-2.2.2@global/bin:/home/user/.rvm/rubies/ruby-2.2.2/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/user/.rvm/bin:/home/user/.rvm/bin
and cabal is located:
$ which cabal
/usr/bin/cabal
A sudo find / -name *cabal*
yielded:
$ sudo find / -name *cabal*
/usr/bin/cabal
/usr/share/doc/cabal-install
/usr/share/vim/vim74/syntax/cabal.vim
/etc/bash_completion.d/cabal
/var/cache/apt/archives/cabal-install_1.16.0.2-2_amd64.deb
/var/lib/dpkg/info/cabal-install.list
/var/lib/dpkg/info/cabal-install.conffiles
/var/lib/dpkg/info/cabal-install.md5sums
/home/user/Downloads/pandoc-1.14.0.3/pandoc.cabal
/home/user/.cabal
/home/user/.cabal/bin/cabal
/home/user/.cabal/share/doc/cabal-install-1.22.4.0
/home/user/.cabal/packages/hackage.haskell.org/cabal-install
/home/user/.cabal/packages/hackage.haskell.org/cabal-install/1.22.4.0/cabal-install-1.22.4.0.tar.gz
Pip
(160 rep)
Jun 9, 2015, 12:48 PM
• Last activity: Jun 9, 2015, 01:30 PM
1
votes
1
answers
3949
views
Cabal error: Cannot run c compiled programs
I have an old version of cabal-install so I downloaded cabal-install 1.20 and When installing it errors out. Additional note: ghc 7.8.3 OS: CentOS 6.6 Error: Building network-2.4.2.3... ....... ...... ...... usr/bin/ld: cannot find -lHSparsec-3.1.7-ghc7.8.3 collect2: ld returned 1 exit status error...
I have an old version of cabal-install so I downloaded cabal-install 1.20 and When installing it errors out.
Additional note: ghc 7.8.3
OS: CentOS 6.6
Error: Building network-2.4.2.3... ....... ...... ...... usr/bin/ld: cannot find -lHSparsec-3.1.7-ghc7.8.3 collect2: ld returned 1 exit status error during cabal-install bootstrap: building the network package failed. When I try to run "cabal install network-2.5.0.0",getting following errors root@gains: cabal install network-2.5.0.0 Resolving dependencies... Configuring network-2.5.0.0... configure: WARNING: unrecognized options: --with-compiler, --with-gcc checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... configure: error: in `/tmp/network-2.5.0.023068/network-2.5.0.0': configure: error: cannot run C compiled programs. If you meant to cross compile, use `--host'. See `config.log' for more details cabal: Error: some packages failed to install: network-2.5.0.0 failed during the configure step. The exception was: ExitFailure 1
OS: CentOS 6.6
Error: Building network-2.4.2.3... ....... ...... ...... usr/bin/ld: cannot find -lHSparsec-3.1.7-ghc7.8.3 collect2: ld returned 1 exit status error during cabal-install bootstrap: building the network package failed. When I try to run "cabal install network-2.5.0.0",getting following errors root@gains: cabal install network-2.5.0.0 Resolving dependencies... Configuring network-2.5.0.0... configure: WARNING: unrecognized options: --with-compiler, --with-gcc checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... configure: error: in `/tmp/network-2.5.0.023068/network-2.5.0.0': configure: error: cannot run C compiled programs. If you meant to cross compile, use `--host'. See `config.log' for more details cabal: Error: some packages failed to install: network-2.5.0.0 failed during the configure step. The exception was: ExitFailure 1
Vidhya
(131 rep)
Dec 11, 2014, 10:35 AM
• Last activity: Dec 12, 2014, 08:38 AM
0
votes
0
answers
1303
views
How to install pandoc
I tried to install pandoc on manjaro and therefore I installed ghc and caball-install, but I got an error by executing "cabal update" $ cabal update Downloading the latest package list from hackage.haskell.org cabal: Codec.Compression.Zlib: premature end of compressed stream I also were not able to...
I tried to install pandoc on manjaro and therefore I installed ghc and caball-install, but I got an error by executing "cabal update"
$ cabal update
Downloading the latest package list from hackage.haskell.org
cabal: Codec.Compression.Zlib: premature end of compressed stream
I also were not able to install Pandoc with help AUR.
user977828
(913 rep)
Aug 30, 2014, 02:28 AM
• Last activity: Aug 30, 2014, 02:06 PM
0
votes
1
answers
229
views
Install specific version of X11 for xmonad?
I wanted to compile `xmonad` from source, so I checked out the code and ran the first command from the `README`. $ runhaskell Setup.lhs configure --user --prefix=$HOME Configuring xmonad-0.12... Setup.lhs: At least the following dependencies are missing: X11 >=1.5 && <1.7 Apparently haskell wants a...
I wanted to compile
xmonad
from source, so I checked out the code and ran the first command from the README
.
$ runhaskell Setup.lhs configure --user --prefix=$HOME
Configuring xmonad-0.12...
Setup.lhs: At least the following dependencies are missing:
X11 >=1.5 && <1.7
Apparently haskell wants a specific version of X11
. This kind of scares me, as whenever I touch video-specific items like Xorg
or video drivers, I tend to completely bork my system.
1. Is it safe to install a specific newer version of X11
?
2. How would I do so? Is it possible to use apt-get
?
Cory Klein
(19341 rep)
Oct 15, 2013, 09:30 PM
• Last activity: Oct 15, 2013, 09:50 PM
Showing page 1 of 8 total questions