nvm installation on Mac M1 - apple-m1

I've been fighting this issue for months now. I can't successfully install node on my Mac M1. I recently bumped into this detailed guide that fortunately is made exactly for my machine, which apparently has something that prevents the correct installation of node: https://gist.github.com/LeZuse/bf838718ff2689c5fc035c5a6825a11c
I tried following the guide, but when I get to point 2 and I insert the command 'nvm install lts/fermium' I get 'zsh: command not found: nvm'.
I also tried entering the command 'arch -x86_64 nvm install lts/fermium' but also in that case I get 'arch: Can't find nvm in PATH'.
What can I do differently?

Related

Updating R to 3.5+ on Ubuntu 18.04

I'm looking to update R on our ubuntu 18.04 server to 3.5 or higher but I'm experiencing some difficulties.
Installing it via install r-base results in version 3.4.x, we need 3.5 or higher to run some specific scripts. I've also consulted this website: https://cran.ma.imperial.ac.uk/, and attempted add the repository listed (sudo add-apt-repository ppa:c2d4u.team/c2d4u4.0+) but this results in the following errors:
Cannot add PPA: 'ppa:~c2d4u.team/ubuntu/c2d4u4.0+'.
ERROR: '~c2d4u.team' user or team does not exist.
At this point, I'm at a loss. I'm wondering if it's potentially a firewall issue? or is there a setting I need to change.
What about downloading .deb(s) from https://cloud.r-project.org/bin/linux/ubuntu/bionic-cran40/ and installing them with dpkg / apt?

module "QtMultimedia" is not installed

I've installed Qt and Qtcreator on a Raspberry Pi 3 using the normal apt-get install method. Everything seems to work fine except when I try to build the declarative-camera example or other multimedia examples I get an error saying module "QtMultimedia" is not installed. Then the empty white application window pops up.
I've tried installing and reinstalling all the required packages such as libqt5multimedia5, qtmultimedia5-dev, etc and it just says they are installed with newest version.
Has anyone had success with getting qt multimedia working on raspberry pi?
Edit:
I tried using the suggested solution of:
sudo apt-get install qtdeclarative5-qtmultimedia-plugin
That gives me an error of:
E: Unable to locate package qtdeclarative5-qtmultimedia-plugin
This seemed to work run the command below:
sudo apt-get install libqt5multimedia5-plugins qml-module-qtmultimedia
I was missing libqt5multimedia5-plugins
Open Qt Maintenance Tool (It is already installed on your pc when you downloaded Qt)
Login to your Qt account and hit next
Select Add or Remove Components, next
Go to Qt -> (The Qt version you installed) -> Additional Libraries and select Qt Multimedia like this
Hit next to install it

Unable to locate package libvirt-clients error on ubuntu

I am seeing the below error when deploying devstack (openstack) on ubuntu:
E: Unable to locate package libvirt-clients
E: Unable to locate package libvirt-daemon-system
Any clues pls ?
I have this problem too and i use ubuntu trusty
according to this commit:
https://github.com/openstack-dev/devstack/commit/03fbc0d71bf4ee85820999ef1324dc319ef9d926?diff=split
they changed the repo packages 5 days ago and just for ubuntu xenial its the same as before : "install_package libvirt-bin libvirt-dev"
but other distros: "install_package libvirt-clients libvirt-daemon-system libvirt-dev"
I think we could better edit the file manually until better changes take place.
You're probably trying to install Devstack it on an unsupported version of Linux. Try Ubuntu 16.0.4 (worked for my today without a single problem) or the one that the installation guide says is supported.
Try sudo apt install qemu qemu-kvm virt-manager for more information check this out on github.

Octave Installation Failing on Mac OS X Yosemite

I am trying to install octave through brew on mac (10.10.5 Yosemite). The command used is brew install octave . While installing, the process tries to install qt (version 4.8.7) which is essentially failing with the below error
Error : 'File already exists. /usr/local/Cellar/qt/4.8.7'.
When I check the file at this particular location, I don`t see any such directory, though the directory does appear and is created during the installation (probably getting removed later when the task fails).
Could someone please point out what I need to do exactly? Is Qt really required for Octave installation? If not then any way to skip it?

upgrade R 2.7.1 on Debian core procedure

My R version is 2.7.1 (on Debian) and some packages are asking for > 2.10. I cannot find updating instructions and I don't want to remove and reinstall as I have other things depending on R and I don't want to mess up. Is there an update procedure?
Closest thing to my problem is on this thread.
check out the instructions for installing from source. Its easy on a Linux box, and you can do the install in any directory you like, you dont even need superuser permissions. Once compiled you can even run R from that directory without messing up any system-installed R. As long as you give the full path to R's binary, or put the path to it in your PATH environment variable, when starting it it will work fine.
FYI
It seems that R on Debian with versions previous to 2.7.1 cannot be updated.
The current core runs from 2.7.1 up. The only way to do it is to remove the existing version.
As this was not straight forward I post it here. If you have Rapache or other things connecting to R disable them with dismode or related.
apt-get purge r-base r-base-dev
I had to do this as well
dpkg -P r-base-core
until this shows no more installed R packages
dpkg -l r-*
Then follow the instruction from http://cran.r-project.org/bin/linux/debian/, with the amendment that you should use deb instead of deb-src in /etc/apt/sources.list.
deb http://<favorite-cran-mirror>/bin/linux/debian lenny-cran/
Before installing run this and it should not say 2.7.1.
apt-cache policy r-base-dev

Resources