How to make LLVM-3.7 default on Raspberry Pi? - haskell

I'm on the default Raspbian OS and sudo apt-get install llvm seems to install llvm-3.5 with a bunch of soft links (like llvm-link pointing to llvm-link-3.5) However, I'd like to install llvm-3.7 and have it treated as the "default" LLVM by the system. I've tried fiddling around with update-alternatives but couldn't get it to work. Help will be appreciated.
PS: I need 3.7 over 3.5 because of https://ghc.haskell.org/trac/ghc/ticket/11190

Related

vs code not installing on Chromebook

I was trying to install vs code on Chromebook with Linux but i get it off the website and go into the file and it says "apt is not install able" and things like it for about five rows of text I hope someone knows the answer.
Try beginning with sudo apt install as opposed to apt install. Linux can be wishy washy when it comes to installs in the terminal.

Proper way of installation of Kivy 1.10+ with Python 3 on Raspberry Pi 3 with 7" Touchscreen Display

I'm searching around for quite a long time for a description of a proper way of installation of Kivy 1.10.0 on a Raspberry Pi 3 with Raspbian Stretch Lite and an attached 7" Raspberry Pi 3 Touch Display. My problem is that there is a description on the Kivy Site for Python 2.7 but there is no update on this page for the Python 3 way.
In this thread a way is shown for Python 3.2 but it seems to be not complete. On this page the way is also shown for 2.7 only. I know that there is a distribution that sums all up but I want to install it on an origin Raspbian.
Cut a long story short: Where can I find a complete list of all dependencies and requirements for a working Kivy application on a RPi3 + 7" Touch?
Thanks a lot for your support in advance.
I followed the steps decribed here for "Manual installation (On Raspbian Jessie)" from kivy itself, which you already linked. Replace pip with pip3. If I remember correctly, that's all I did.
Also, first try to upgrade Cython without a specific version, as it might be that it will install a higher version.
(It takes a long time, prepare yourself to wait for a while...)
See comments for fix to another problem
Came across the solution for installing kivy on Raspberry Pi 3+ here:
https://groups.google.com/forum/#!topic/kivy-users/OSpnIv4a_S4
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install libsdl2-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-ttf-dev \
pkg-config libgl1-mesa-dev libgles2-mesa-dev \
python-setuptools libgstreamer1.0-dev git-core \
gstreamer1.0-plugins-{bad,base,good,ugly} \
gstreamer1.0-{omx,alsa} python-dev
(Note that I stripped off the "cython" from the above command)
sudo pip install cython==0.20.1
sudo pip install git+https://github.com/kivy/kivy.git#7e789b2
Worked perfectly for me after struggling with dependencies for a couple of days of try and fail.

Install Lazarus on Raspberry Pi

I want to develop with Lazarus on Raspberry Pi, but until now I can't.
Here I've read this:
In the Raspbian OS it is easy to install Lazarus and Free Pascal. In order to do this simply open a terminal window and type:
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install fpc
sudo apt-get install lazarus
I've tryed to install FPC for Linux ARM, but the installer didn't work.
Moreover I dont't know where to get Lazarus for Linux ARM.
It seems that Lazarus and FPC for Linux are target to x86/x64 and not fot ARM.
Can someone help me where can I download one single bundled of binaries (Lazarus + FPC) that install out of the box (without the need of source compilation) in the same way as the Windows version?
Another question: is that possible to cross-compile from Windows to Raspbian?
I've done cross-compilations many times but between other OSs.
Thank you
If you use the shell commands from above (those that begin with "sudo apt-get") you don't have to install anything in addition. Lazarus and FPC should be readily installed and available from the "Programming" section of the LXDE start menu.

Step by step: Installing Python 3.3, Lighttpd & Pymongo on Ubuntu 12.04

I'm currently migrating to new computer and I need to reinstall the software I am using which are:
Python 3.3,
Lighttpd (newest version),
Pymongo (newest version),
Ubuntu 12.04 Desktop (The System I'm using)
I started to install Python 3.3 by downloading it from the its official website (in tar.bz2 file) and by following this tutorial. Afterwards I installed Lighttpd and changed the lighttpd.conf for Python by following this tutorial, too.
I tried several paths for my cgi.assign, none of them worked. Especially /opt/python3.3/bin/python3.3 should be working, but it shows 500 - internal Server error all the time with a "hello world" test script.
Now regardless to this problem I have no clue on installing Pymongo. If I try to intall pip OR easy_install python3.3 I have to manually download it and execute the setup.py with my python3.3 executable, right? Because this always fails with an error:
`Error missing zlib on a bundle called distribute-0.7.3 (is this even the right tool I need, because it seems to be a legacy wrapper !?) or unknown url type: https for pymongo2.6.2 itself.`
I'm getting crazy with this setup. Why is this so difficult to handle? Other programs are just a few clicks to install even on a system like Ubuntu, but these particular development tools seem to be really difficult to install.If anybody has an idea on how to install all three together or has information on a better solution please help me out.
The system is used to program Python scripts in Eclipse and trying them out directly on the system (lighttpd). The database used is MongoDB. Python and MongoDB are communicating over the Pymongo driver. I am planning to use the system on a Server distribution on release and it has to be nicely scalable on a high amount of excecutions.
Thanks for your time,
It's easiest to use the Ubuntu repositories:
sudo apt-get update
sudo apt-get install python3 python3-pip lightppd python-pymongo
Or if that only installs the python2.x pymongo, use pip, which you've just installed:
sudo pip-3.3 install pymongo
Or better yet, use a virtualenv with the help of virtualenvwrapper (docs)
sudo pip install virtualenvwrapper
... # follow instructions for installing virtualenvwrapper
mkvirtualenv --python=/usr/bin/python3 -i pymongo mongoppd
workon mongoppd
... which will segregate the environment I've called 'mongoppd' from the rest of your system so you can't cause any trouble. Then you don't need sudo to pip-3.3 install things, just workon mongoppd then pip-3.3 install [...]. Or after the -i flag when you create the virtualenv to get it installed straight away.
In general, on Ubuntu, you should hardly ever have to install something manually. Your first attempt should be using sudo apt-get install (use tab-complete to see what's available or just google "ubuntu 12.04 packages [...]" and you'll find the list of packages). Then for python use pip install or pip-3.3 install as appropriate. You'll only need to run python setup.py install if you need to install a development version of a package or something obscure that's not on pip. I don't think there's a good reason to ever use easy_install these days.

Python update Linux (Raspberry Pi)

I am trying to upgrade my Python 3.2.4 to the newer 3.3.1 on my Raspberry Pi using the Raspian Wheezy Distro, but for some reason this won't work. I only need it to use the new ipaddress module introduced, however, this is giving me some issues. I am not getting any errors, just the entire proccess doesn't seem to work with the Pi.
I have tried :
apt-get install python3
apt-get update python-3.2.4
Nothing is giving me any luck, any ideas?
Try apt-get install package=version.

Resources