xeus-cling install fails in Anaconda - gcc

I have created a new virtual instance of Ubuntu 18.10
On this fresh installation, I then installed Anaconda as per the installation instructions (using curl, which I also installed).
The next thing I did (quite literally) after verifying conda was correctly installed was to install xeus-cling via
conda install xeus-cling -c QuantStack -c conda-forge
After downloading all the packages, the install fails with this error:
Executing transaction: failed ERROR conda.core.link:_execute(502): An
error occurred while installing package 'QuantStack::gcc-7-7.2.0-2'.
LinkError: post-link script failed for package
QuantStack::gcc-7-7.2.0-2 running your command again with -v will
provide additional information location of failed script:
/home/anaconda/anaconda3/bin/.gcc-7-post-link.sh
==> script messages <==
Attempting to roll back.
Rolling back transaction: done
LinkError: post-link script failed for package
QuantStack::gcc-7-7.2.0-2 running your command again with -v will
provide additional information location of failed script:
/home/anaconda/anaconda3/bin/.gcc-7-post-link.sh
==> script messages <==
I have repeated this several times, and the error is always the same. Any idea how to resolve the problem? It looks like an issue with the version of gcc, but I'm not sure how to resolve/fix it.
Other conda packages (i.e. SciJava) install without problems (tested in other instances of this process).

Ran into the same issue and resolved it by running
sudo apt-get update
sudo apt-get install -y build-essential
I ran into it on the anaconda3 docker image - so your mileage may vary.

Related

How can I install libdouble-conversion-dev on Ubuntu 18.04?

I tried installing the libdouble-conversion-dev package using sudo apt-get install libdouble-conversion-dev but failed with the following output:
Package libdouble-conversion-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'libdouble-conversion-dev' has no installation candidate
I have also tried running sudo apt-get update beforehand and got the same results, as well as installing from the debian file from https://packages.debian.org/buster/amd64/libdouble-conversion-dev/download but nothing seemed to have changed.
You can manually install a Debian package on a compatible Ubuntu host with sudo dpkg -i $name_of_package_file.

Pyenv on Amazon Linux fails to build due to openssl

I’m having the exact same issue as referenced here with respect to compiling Python 3.7+ on Amazon Linux 2 using Pyenv. I’ve tried building openssl1.1 from source and still get the same error of build fails due to openssl not being compiled. Following the recommended instruction of setting the right flag variable to the path of openssl and then running Pyenv install still didn’t work. Does anyone have a solution for this on Amazon Linux?
This finally worked for me
sudo yum remove openssl-devel.x86_64
sudo yum autoremove
sudo yum install openssl11-devel

'The executable 'bsdtar' Vagrant is trying to run was not found in the PATH variable' in Ubuntu 20.04

I am using Ubuntu 20.04, and I am having the following error message on vagrant up
The executable 'bsdtar' Vagrant is trying to run was not
found in the PATH variable. This is an error. Please verify
this software is installed and on the path.
I tried:
sudo apt-get install libarchive-tools
but got the error:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libarchive-tools
I just setup a vagrant box with archlinux on ubuntu 20.04 and also got the same error. I was able to fix my issue by running
sudo apt install libarchive-tools
Maybe you need to run
sudo apt update
to update your apt database

Installation error when installing Ruby for Jekyll

I'm running on Windows 10 Enterprise, build 1703. I have Anaconda 4.4.0 and Python 3.6 installed. I'm running bash and Ubuntu Linux was installed o.k.
I'm trying to install Ruby for Jekyll (https://jekyllrb.com/docs/windows/#installing-jekyll).
The install command is:
sudo apt-get install ruby2.3 ruby2.3-dev build-essential
and it gives the error:
root#bigsur:/mnt/c/Windows/System32# sudo apt-get install ruby2.3 ruby2.3-dev build-essential
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
root#bigsur:/mnt/c/Windows/System32#
root#bigsur:/mnt/c/Windows/System32#
root#bigsur:/mnt/c/Windows/System32# sudo dpkg --configure -a
dpkg: dependency problems prevent configuration of python3.5:
python3.5 depends on python3.5-minimal (= 3.5.2-2ubuntu0~16.04.3); however:
Version of python3.5-minimal on system is 3.5.2-2ubuntu0~16.04.1.
python3.5 depends on libpython3.5-stdlib (= 3.5.2-2ubuntu0~16.04.3); however:
Package libpython3.5-stdlib:amd64 is not installed.
dpkg: error processing package python3.5 (--configure):
dependency problems - leaving unconfigured
Setting up libapt-inst2.0:amd64 (1.2.24) ...
dpkg: unrecoverable fatal error, aborting:
unable to truncate for updated status of 'libapt-inst2.0:amd64': Invalid argument
root#bigsur:/mnt/c/Windows/System32#
Any help will be greatly appreciated.
Charles
I read many posts on the Internet that said the best way to install Jekyll was to install by way of a linux subsystem. I now realize that this is bad advice. After running into trouble (see above), I started over. I found that Build 1703 of Windows 10 Enterprise already had the infrastructure to install Jekyll with the instructions at: https://jekyllrb.com/docs/installation/. I followed these instructions and I now have a clean installation of Jekyll. Don't bother installing Ubuntu. You don't need it, and you will save over 700 MBytes of disc space.
Charles

Could not execute command lessc' while running odoo (any version) in eclipse mac

After a thorough analysis of 'Could not execute command lessc' i've successfully ran odoo (any version) on my command line with python virtual env. Am doing this to run odoo in command line
$ . {PATH_TO_VIRTUAL_ENV}/bin/activate (Running the script in the current shell)
$ cd {PATH_TO_ODOO_SOURCE}
$ ./odoo.py -c setup.cfg
And the above runs with proper UI.
Now when trying to run the same from eclipse throws me 'Could not execute command lessc'. I did the below to run code from eclipse
Installed pydev plugin in eclipse Mars
Configured Python interpreter (Given the virtual env python path here. i.e {PATH_TO_VIRTUAL_ENV}/bin/python)
Setup odoo source
Specified the new python interpreter on the project properties -> python interpretor
Created a new Run Configuration to run the source with the custom setup file and with the new interpretor
Kindly throw me light on places where i miss. Also i've gone through links on setting up python virtual env in eclipse. They all say the same thing still this lessc dependency is somehow not linked. Please comment if you require more info to identify the error. Thanks for your help! :)
FYI am using mac.
Update
For Shikhar (based on his answer)
This problem is related to your bad configuration of Nodejs and less on system.
Use commands below to resolve this -
wget -qO- https://deb.nodesource.com/setup | sudo bash -
then
brew install node
and finally
sudo npm install -g less less-plugin-clean-css
This will resolve the lessc command issue.
try this
sudo apt-get install node-clean-css
sudo apt-get install node-less
The solution:
sudo apt-get install node-clean-css
sudo apt-get install node-less
may work for Global system installation but if you are working within a virtualenv you may try this.
If somebody had the issue inside PyCharm wich was my case and nothing else works...
I leave my solution here:
First: I tried to check if node and npm exist inside my virtualenv: node -v and npm -v, not any of them... Second: I was using virtualenv, also when I ask inside my virtualenv with: which lessc . I didn't receive any response neither, so... I keep googling and found this post: How to install lessc and nodejs in a Python virtualenv?
In any case this was what I did on my virtualenv and the problem was solved:
MYVIRTUALENV/bin/activate # switch to my Python virtualenv first
pip3.7 install nodeenv # install nodeenv nodeenv was installed, in case you are using python 2.x use pip instead pip3
nodeenv --python-virtualenv # Use current python virtualenv
npm install -g less # install lessc in the virtualenv
npm install -g less-plugin-clean-css # also install this less-plugin...
then if I check with node -v and npm -v I get a proper response...
also get good response on: which lessc
After that no more nightmare with lessc execution in pycharm

Resources