Are 32bit libraries not supported on Ubuntu 16.04? - gcc

I'm working on the development of a bare bones OS.
While installing gcc & binutils, getting an error:
32-bit libraries are missing
Some articles say that 32-bit libraries are not supported from 16.04 onwards.
If it is not supported, which is the best way to proceed with 32 bit OS development?
Will development in virtual box, helpful while developing drivers in OS?

the best method is it to install virtualBox or VM Ware player and install a 32-bit Ubuntu in it.
If you still want to use it in your current system then the method to install 32-bit should be to add the architecture, update and it then should have imported the 32-bit packagea,
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 lib32z1

Related

How to install everything natively without rosetta 2 in M1 macs?

I have been using M1 macbook for almost half a year and initially, I installed many packages under rosetta 2 and many natively (I assume). I run my terminal under rosetta 2 but whenever I install any package using brew, I do it using arch -arm64 brew install <pkg-name>. Now, I have no clue if all this time, I had been installing the packages under rosetta 2 or natively.
Anyways, now I want to install the native versions of all the packages and software since now, most of them are available natively. Please help me to figure out how can I do this. All I want to do is remove everything and then install then natively without rosetta 2.
Some of the things which I want to reinstall are:-
Homebrew
Mini conda and the python libraries.
gcc and g++
MySQL
Node and npm
Also, in future, if I want to install anything natively then how should I do it?
If you used Homebrew to install all of the packages, try to uninstall them as you where using brew. Then uninstall the x86 version of Homebrew
And for the native versions, install the new Homebrew with the ARM terminal. And reinstall everything.

Cannot install libc6-devel-i386 on windows

How to install the package on windows? I have seen a lot of Ubuntu guides but don't know how to install for windows
You need libc6 header files from this library to include with your c++ programs that is not OS specific.

Installing python development libraries on windows

I want to install sasl.h header in my C:/python27/include folder which I browsed the internet and found could be done by
python-dev libsasl2-dev
if on Linux environment. What to do if I am on windows ??

is it possible to code CUDA at virtual box Win8?

I know that by using virtual box, graphics card cannot be utilized by all the measures so I think it is not possible but I also think that coding cuda at least setting the CUDA developing environment is easier at Windows (unfortunately) thus if it is possible I plan to setup win8 to virtual box on my Ubuntu.
I do want to use win since I am at optimus Nvidia machine thus there is a driver problem at Ubuntu. In addition compilation of the code at Eclipse does not work due to that driver flaw. In case I use Win there might be the remedy of the problem.
Even if you get success in setting up environment in your virtual box to compile cuda code and you compiled cuda code there it will be of no use because you wont be able to run the code in virtual box.
Yes, your are absolutely right that installing drivers on optimus nvidia card is difficult task. I was also stuck with the same problem. but with release of cuda 5, installing cuda on Ubuntu is very simple.
follow these simple steps.
Driver installation ##
Download cuda 5 from here.(32bit or 64bit depending on OS)
Cuda 5 download
Install required tools by following command
sudo apt-get install freeglut3-dev build-essential libx11-dev libxmu-dev libxi-dev libgl1-mesa-glx libglu1-mesa libglu1-mesa-dev
Next, blacklist the unnecessary modules
sudo gedit /etc/modprobe.d/blacklist.conf
add following lines at last
blacklist vga16fb
blacklist nouveau
blacklist rivafb
blacklist nvidiafb
blacklist rivatv
and reboot your system.
After reboot press Ctrl+Alt+F1. Login there and enter following command.
service lightdm stop
Go to location where you have downloaded cuda 5. In my case its on desktop.
cd Desktop
make it run from shell
chmod +x cuda_5.3.35_linux*****
Run from terminal
./cuda_5.3.35_linux*****
accept it, when asked to install drivers press y and n for cudatoolkit and gpucomputingsdk
now reboot and you are done with driver installation.
To install cudatoolkit and gpucomputingsdk follow this link
Cuda 4.2 installation on Ubuntu

How do I manually install vmware tools?

I installed UBUNTU with Vmware Player on my Windows 7 system. For some reason Vmware Player cannot get the Vmware Tools files from internet, possibly a connection problem due to firewall limitations. I want to get the Vmware Tools files in compressed format if there is any, and then manually install it. Two questions:
1- Is there a link where i can download Vmware Tools files?
2- How do i install it manually? I'm using Vmware Player on a Windows 7 system. And if i download it, which folder should i unzip the contents? As you know, UBUNTU runs on a virtual disk, and to copy files on this disk i guess i have to use Vmware Tools. But i don't have it already.
Please help!
Here are three steps I used to install the VMWare Tools. I got the steps from Ubuntu help.
install kernel headers so modules will work
needed this on a 10.04 guest running in a Fusion 3 host
apt-get install linux-headers-virtual
install kernel modules
apt-get install --no-install-recommends open-vm-dkms
EITHER: install tools for an xorg install
apt-get install open-vm-tools
OR: a headless install
apt-get install --no-install-recommends open-vm-tools

Resources