Cannot install Clang on Archlinux - installation

For my second year we need to learn how to use linux (at a beginner level) and our professor told us to use Ubuntu, or ArchLinux if we wanted to learn more. I installed ubuntu and the required tools (he gave us a short list) but Archlinux freeze completly when I try to install clang and I have to recreate a new Virtual machine (I am on a Mac using VMWare) each time
here is the list of tool needed:
emacs
clang (>=3.4)
gcc (>= 4.8)
make
xterm
For each one it works but for clang
Here is the error I get:
image http://img11.hostingpics.net/pics/876673ScreenShot20140906at182459.png
and it doesn't respond anymore so I have to forcequit my VM and reinstall a new one. Has anybody already encountered this error ? Does anybody know what it means ? I tried pacman -Syu but it has not done anything...
Thank you

First It looks like a error that your VM hard drive is broken.
But it just 'maybe'.
Try to reboot it and try install commands again.
If it still can't work try to add -o $(pidof mount.ntfs-3g) to kill_all_wait() in /etc/rc.d/functions and reboot it.

Related

Mujoco in Ubuntu error: command '/usr/bin/aarch64-linux-gnu-gcc' failed with exit code 1

I was trying to install Mujoco in Ubuntu. I have downloaded mujoco200, and put it to ./mujoco with the license. Then downloaded mujoco_py with 'pip3 install mujoco_py==2.0.2.8'. According to the instructions I read online that should be all, and then when I run 'import mujoco_py', the following error shows:
distutils.errors.CompileError: command '/usr/bin/aarch64-linux-gnu-gcc' failed with exit code 1
Does anyone know how to solve this problem? If not, I am using Mac M1, does anyone know how else can I use Mujoco since I don't think I can use Mujoco in Mac M1?
At first, the terminal asks me to put 'export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/yilin/.mujoco/mujoco200/bin' in .bashrc, I did that and that bug is gone. But now this bug comes up. I have tried to use Mujoco with Mac, use mujoco_py in colab and both of them failed.
Any particular reason you want to use mujoco 2.0.0 rather than a later version of MuJoCo? mujoco_py supports the free MuJoCo since November last year (install mujoco_py==2.1.12.14).
Or better, avoid mujoco_py, and use the mujoco package on pip instead. If you're using Gym, read their note about the latest MuJoCo environments: https://github.com/openai/gym#mujoco-environments
Using mujoco rather than mujoco_py will avoid all installation problems, because the MuJoCo binary is included in that Python package and doesn't need to be installed separately. It works fine on Mac M1.

Fixing m4 on MAC OS 10.14.5

I'm having an issue with pecl which is erring out saying phpize had failed.
The problem ultimately seems to be with m4. Error is autom4te: need GNU m4 1.4 or later: /Applications/MAMP/Library/bin/m4
When I run "which m4" I get /Applications/MAMP/Library/bin/m4
However, any command I try to run with m4 like "m4 --version" I get the following:
Abort trap: 6
I can't find a good explanation of that error, but I'm guessing something is corrupted with m4, but I can't figure out how to fix this on a Mac. Do I just download a newer version and run configure, make and make install? Just a little nervous since I have somewhat limit Mac experience.
I've fixed similar issue by executing brew reinstall m4.
In addition to a "brew (re)install m4", I had to temporarily remove "/Applications/MAMP/Library/bin" from my PATH. After that this worked for me.

How to install libraries (mysql connector cpp) on Mac using terminal and make things simple as in the case of Ubuntu

I will share an example.
I had to install mysql connector c++ libraries for my project.
To install connector c++ on my Mac, i had to build it from the source code and it takes a lot of effort because you get errors sometimes and then it is troublesome, something which should have been done in a short time.
In case of Ubuntu, I just had to write one command in the terminal, and wow, everything just got done automatically.
apt-get install libmysqlcppconn7
Does anybody know any similar command in mac, using brew or macports?
I tried to find but I guess I didn't get any results to satisfaction.
And if there is not, can anyone guide me so that I can make it possible, like I think it's possible for mac, if it is possible in ubuntu.
Please guide me, an answer in a bit detail would be so much appreciated.
Probably the nearest thing to apt-get on a mac is brew
Once it is set up (and this isn't difficult) "brew install mysql-connector-c++" will install on the mac

apt in Linux Subsystem for Windows 10 is failing with 404 Not Found

OK, so this is my first SO question so I'm gonna try my best to lay this out.
I have a Windows 10 laptop on which I am trying to install gcc. I have in the past tried alternatives such as netbeans, cygwin and various emulators and virtual machines all to no avail.
What has been working so far is that I enabled the 'new' windows developer mode which allowed me to download a Linux bash shell from the windows store. It works for all the regular Linux commands, but doesn't have gcc installed.
When I type in gcc (or gcc --version) in the shell, it prints the following line:
The program 'gcc' is currently not installed. You can install it by typing:
sudo apt install gcc
Which I tried, it then ran through a bunch of installer stuff but consistently seemed to run into errors such as the following:
Err:7 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libdpkg- >perl all 1.18.4ubuntu1.2
404 Not Found [IP: INSERT IP ADDRESS HERE ]
where the ip address is different on each error line.
It ultimately fails with the following line:
Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
I have tried but again I get the same kinds of errors as above.
I would really like to get gcc working in the Windows/Linux shell as it is working great for everything else, and I'm trying to keep the number of programs on my computer to a minimum.
Does anyone know why this isn't working, or how (if possible) I can make it work?
P.S I do need it to be gcc because of school reasons
For what it's worth: I landed on this SO topic after having a similar issue.
What fixed it for me was to run
sudo apt-get update
sudo apt-get upgrade
I guess the repo URLs were too old, even though my Ubuntu was in a recent version.
I just ran into the same thing attempting to install python-pip. According to this article, this happens when you have the Windows 10 Anniversary Update (older) instead of the Creators update (newer). The solution is to either uninstall and re-install Ubuntu, or upgrade it (from 14.04 to 16.04). I found the upgrade to be simple and painless:
sudo do-release-upgrade
To check what you have, before and after via:
lsb_release -a
I had the same problem. Pinging the IP resulted in no response and visiting the website returned a 404.
I found a ppa with most current GCC and registered the PPA and was able to successfully install GCC with it; ppa website. I used GCC to build some software I wanted that was not found with apt-get.
From their page:
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
Try to run Ubuntu application in Windows with an option "Run as Administrator".

Installing openmpi onto OSX Yosemite using macports

I'm currently trying to install openmpi onto my mac (OSX Yosemite) using Macports. I've tried this several times and each time the install seems to be successful, but it then doesn't seem to work when trying to use it. For example, entering "ompi_info" returns "-bash: ompi_info: command not found". Reading around similar threads, it seems like there might already be some openmpi installed on a mac but without a fortran compiler, and so the openmpi I am trying to install is going into another place, which I need to add to the PATH. Is this right, or is something else the problem? And how do I solve it?
Thanks a lot for any help you are able to give!
Ports should take care of your paths, but you might still need to select it for your MPI. You might try something like this:
sudo port install openmpi-gcc5 +fortran
sudo port select gcc mp-gcc5
sudo port select mpi openmpi-gcc5-fortran

Resources