I there i'm trying to install the functionality Sandbox of cabal that comes only with cabal-1.18 .
I use the cabal install Cabal cabal-install and even went for cabal install Cabal cabal-install-1.22.2.0.
It says i'm using
> cabal install cabal
Resolving dependencies...
All the requested packages are already installed:
Cabal-1.22.2.0
Use --reinstall if you want to reinstall anyway.
Either way when i do:
> cabal --version
cabal-install version 1.16.0.2
using version 1.16.0 of the Cabal library
It says i'm using 1.16.0. How do I use the 1.22 that was installed?
Try cabal install cabal-install-1.22.0.0 --global
Related
I am trying to install ms sql in Ubuntu 20.04. Even I have got it installed in 20.04 successfully following this guide but I sometime I have this problem multiple time and not sure why is this happening.
When I try to run following commads
curl https://packages.microsoft.com/config/ubuntu/18.04/prod.list | sudo tee /etc/apt/sources.list.d/msprod.list
sudo apt-get install mssql-tools unixodbc-dev
I end up having below errors:
The following packages have unmet dependencies:
mssql-tools : Depends: msodbcsql17 (>= 17.3.0.0) but it is not going to be installed
unixodbc-dev : Depends: unixodbc (= 2.3.7)
Depends: odbcinst1debian2 (= 2.3.7) but 2.3.6-0.1build1 is to be inst
E: Unable to correct problems, you have held broken packages.
sudo apt-cache policy <package> shows multiple versions available for these packages.
I tried installing the right versions for dependencies that did not help when I ran sudo apt-get install mssql-tools unixodbc-dev again.
When I checked msprod.list file, it looks like 'https://packages.microsoft.com/config/ubuntu/18.04/prod' the tailed .list is missing so I added that(not sure I should do that or not). Then I have got everything installed.
Now when I do sudo apt update it ends up with below error:
E: The repository 'https://packages.microsoft.com/ubuntu/18.04/prod.list bionic Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
I really don't understand what is happening and what I have to do to get thing working in simplest way.
Do as follow:
apt install mssql-tools unixodbc-dev odbcinst1debian2 msodbcsql17 unixodbc libodbc1
apt-get install stuff caring about package conflict.
If you use apt only it will forcefully install the package without taking care if the installation is creating conflicts.
I want to install texstudio in terminal by using this command: 'sudo apt-get install texstudio'
but get this error:
'The following packages have unmet dependencies: texstudio : Depends:
libpoppler-qt5-1 (>= 0.34.0) but it is not installable
Recommends: latex-beamer but it is not installable E: Unable to correct problems, you have held broken packages.'
I change the default settings of softwares & updates in ubuntu which looks like this:
is there anyway to fixed it? thanks.
You can try doing
sudo apt-get install -f
and then trying again
i try to install oracle express edition to Ubuntu 16.04 but
package alien is not installing i tried everything but nothing worked it continuously giving this error..
The following packages have unmet dependencies:
alien : Depends: debhelper (>= 7) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Error
Try to install with aptitude:
sudo aptitude install alien
if you dont have installed aptitude than do:
sudo apt-get install aptitude
I have cabal already installed on my Fedora OS.
The current version of cabal is
user#localhost ~]$ cabal --version
cabal-install version 1.22.9.0
using version 1.22.5.0 of the Cabal library
I want to update cabal to the latest version Release 1.24.2.0. But the update is not successful.
user#localhost ~]$ sudo cabal update
[sudo] password for rajkumar:
Downloading the latest package list from hackage.haskell.org
Skipping download: Local and remote files match.
My ghc version is
user#localhost ~]$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 7.10.3
Below is the log of the 2 steps above.
I am seeing in log it says Installed cabal-install-1.24.0.2
Once it is done, still the cabal --version doesn't result in latest version. Any Idea
[user#localhost ~]$ sudo cabal update
[sudo] password for user:
Downloading the latest package list from hackage.haskell.org
[user#localhost ~]$ sudo cabal install cabal-install
Resolving dependencies...
Downloading Cabal-1.24.2.0...
Downloading base16-bytestring-0.1.1.6...
Configuring base16-bytestring-0.1.1.6...
Downloading cryptohash-sha256-0.11.100.1...
Downloading ed25519-0.0.5.0...
Configuring cryptohash-sha256-0.11.100.1...
Downloading tar-0.5.0.3...
Building base16-bytestring-0.1.1.6...
Building cryptohash-sha256-0.11.100.1...
Installed base16-bytestring-0.1.1.6
Configuring Cabal-1.24.2.0...
Configuring ed25519-0.0.5.0...
Installed cryptohash-sha256-0.11.100.1
Building Cabal-1.24.2.0...
Building ed25519-0.0.5.0...
Configuring tar-0.5.0.3...
Installed ed25519-0.0.5.0
Building tar-0.5.0.3...
Installed tar-0.5.0.3
Installed Cabal-1.24.2.0
Downloading hackage-security-0.5.2.2...
Configuring hackage-security-0.5.2.2...
Building hackage-security-0.5.2.2...
Installed hackage-security-0.5.2.2
Downloading cabal-install-1.24.0.2...
Configuring cabal-install-1.24.0.2...
Building cabal-install-1.24.0.2...
Installed cabal-install-1.24.0.2
[user#localhost ~]$ cabal --version
cabal-install version 1.22.9.0
using version 1.22.5.0 of the Cabal library
[user#localhost ~]$ sudo cabal --version
[sudo] password for user:
cabal-install version 1.22.9.0
using version 1.22.5.0 of the Cabal library
Thanks in advance for your kind suggestions.
According to:
https://github.com/haskell/cabal
Installing Cabal
Assuming that you have a pre-existing, older version of cabal-install, run:
cabal install cabal-install
To get the latest version of cabal-install. (You may want to cabal update first.)
cabal update
cabal install cabal-install
cabal update by itself will only get the current list of packages from Hackage.
Below steps update the cabal in ~/.cabal/bin but it does not update the symbolic link at /usr/bin
sudo cabal update
sudo cabal install cabal-install
So after that I followed the below steps as well and it helped me.
[user#localhost ~]$ which cabal
/usr/bin/cabal
[user#localhost ~]$ sudo rm -rf /usr/bin/cabal
[sudo] password for user:
[user#localhost ~]$ which cabal
~/.cabal/bin/cabal
[user#localhost ~]$ cabal --version
cabal-install version 1.24.0.2
compiled using version 1.24.2.0 of the Cabal library
[user#localhost ~]$ sudo ln -s ~/.cabal/bin/cabal /usr/bin
[sudo] password for user:
[user#localhost ~]$ which cabal
/usr/bin/cabal
[user#localhost ~]$ cabal --version
cabal-install version 1.24.0.2
compiled using version 1.24.2.0 of the Cabal library
When I install Haskell/GHC+cabal via sudo apt-get I installed cabal version 1.16. This is obviously not the most up to date version. How would I go about upgrade to at least version 1.18? I tried doing sudo apt-get update and sudo apt-get upgrade.
Edit:
Also when I run cabal install cabal-install it appears to "install" version 1.20 but when I run cabal -V it says cabal 1.16.0
Fixed it by adding the following line to my ~/.profile: export PATH=$(HOME)/.cabal/bin:$PATH