Header file Error for Kernel Compliation Linux - linux

I am getting the following error when I run the command to install linux headers.

Have you tried running sudo apt-get update or sudo apt-get upgrade? This error frequently happens when your list of packages is out of date. The update command will update the list of available packages. The upgrade command will upgrade all of the packages on the system.

Related

How can i install pyhs2 in linux environment?

Approach
I use :
sudo pip3 install pyhs2
but it’s not working.
Problem
It show this error like as picture.
Question
In this situation how can i install "pyhs2" library in my linux environment
There's a clear error in the output that you've shown:
fatal error: sasl/sasl.h: No such file or directory.
This error occurs when the install process is trying to compile some C code. The error is telling you that your system is missing some C header files (and probably the corresponding libraries). On a Red Hat-style system (Red Hat, CentOS, Fedora, etc), you would need to run:
yum install cyrus-sasl-devel
On a Debian-style system (Debian, Ubuntu), you would need to run:
apt-get update
apt-get install libsasl2-dev

Installing RPostgreSQL on Linux

When I try on linux in R
install.packages('RPostgreSQL')
it fails with unspecified errors:
Warning message:
In install.packages("RPostgreSQL") :
installation of package ‘RPostgreSQL’ had non-zero exit status
I tried to solve problem with:
sudo apt-get install postgresql-server-dev-8.4 for postgresql version 8.4.
but it doesn't seems to work.
sudo: apt-get: command not found
I have PostgreSQL 9.1.11 version.
Read the configure log.
You most likely "merely" forgot to read the README and DESCRIPTION and other documentation telling you to do
sudo apt-get install libpq-dev
We develop this on, inter alia, Debian/Ubuntu systems so can be more than sure that it works there.

"configure: error: libnl and libnl-genl are required but were not found"

I'm trying to configure powertop-2.5 but when I run ./configure I get a "configure: error: libnl and libnl-genl are required but were not found" error
I've run
sudo apt-get install libtool autoconf libnl-dev ncurses-dev pciutils-dev build-essential -y
as was recommended by these guys but I get the same error.
I ran
sudo apt-get install libnl-genl-3-dev
Which replaced the previous libnl file but I still get the config error.
According to this, powertop has (or had) problems with detecting libnl but I can't figure out how to fix it.
I'm currently running Linux username 3.2.0-4-686-pae #1 SMP Debian 3.2.51-1 i686 GNU/Linux
I see you tried libnl-dev, maybe try libnl-3-dev instead:
sudo apt-get install libnl-3-dev libnl-genl-3-dev
Probably the problem is the lack of the pkg-config application in your system (which is used to find the proper dependencies with the configure script). I just have the same problem in a fresh installed Ubuntu 14.04 system, and after installing the pkg-config package the configure script finalized successfully its work. Then I could compile and install the last version (2.6.1) of powertop.
I "solved" my problem by installing powertop-2.0 instead.
The use of pkg-config made the trick. I was able to install Powertop 2.7.

Installing Python on Linux Mint

I have been trying to install python3.3.0 on Linux Mint. After reading the README file, I ran the following commands:
./configure
make
make test
sudo make install
I ran the make test command, but it gave skipped a few tests sayig that it could not find the required modules and gave the following errors:
FAIL: test_urlwithfrag (test.test_urllib2net.OtherNetworkTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/Python-3.3.0/Lib/test/test_urllib2net.py", line 165, in test_urlwithfrag
"http://docs.python.org/glossary.html#glossary")
AssertionError: 'http://docs.python.org/2/glossary.html' != 'http://docs.python.org/glossary.html#glossary'
- http://docs.python.org/2/glossary.html
? --
+ http://docs.python.org/glossary.html#glossary
?
+++++++++
Ran 15 tests in 58.905s
FAILED (failures=1, skipped=1)
test test_urllib2net failed
make: *** [test] Error 1
Please tell me what I need to do to get python working on my system
What are you planning on using Python for? (Reply as a comment)
It is a very bad idea to install a newer version of Python on your system itself, as it could break a lot of functionality of the OS (as the OS is built using a specific version of Python).
I recommend you consider using a tool like:
https://github.com/utahta/pythonbrew (deprecated but still works)
OR
https://github.com/yyuu/pyenv (alternative recommended)
These tools will act like a kind of sandbox and make installing different versions possible without breaking the functionality of the OS.
That bug is reported here.
I had the same error and python3 works fine, however, before you install please install the following dependencies. It will save you many hours of pain that I had to go through trying to get tkinter to work (note that several of the following don't exist, but just go through the motions as I forget which ones aren't relevent anymore):
sudo apt-get install zlib1g-dev
sudo apt-get install build-essential
sudo apt-get install libncursesw5-dev
sudo apt-get install libreadline5-dev
sudo apt-get install libssl-dev
sudo apt-get install libgdbm-dev
sudo apt-get install libc6-dev
sudo apt-get install libsqlite3-dev
sudo apt-get install tk-dev
sudo apt-get install python-support
You will still get the same error about test_urllib2net but it isn't anything that will halt you in the future (at least I don't think so based on the bug report listed above).

how to install oracle-rdbms-server-11gR2-preinstall

just completed installing oracle linux 6 update 2 on my virtual box and i have been trying to install oracle 11gr2 on the same operating system i am following the installation guide but i have encountered some problems when i run this command on my terminal
yum install oracle-rdbms-server-11gR2-preinstall
i am getting an error
no package oracle-rdbms-server-11gr2-preinstall available
error nothing to do
is there any way i am doing this wrongly??how can i install the oracle-rdbms-server-11gR2-preinstall
It seem you don't have oracle repository configured, do following:
As an authorized user (for example, root), retrieve the file that configures repository locations:
$sudo cd /etc/yum.repos.d
$sudo wget http://public-yum.oracle.com/public-yum-ol6.repo
Using a text editor, modify the file, changing the field enabled=0 to enabled=1 to reflect repositories that correspond to the machine's operating system release.
Next, install the oracle-rdbms-server-11gR2-preinstall RPM using the yum install command.
The output in Listing 1 shows how the installation checks dependencies and then downloads and installs the required packages.
$sudo yum install oracle-rdbms-server-11gR2-preinstall
mv /etc/pki/rpm-gpg/RPM-GPG-KEY-oracle-ol6.repo /etc/pki/rpm-gpg/RPM-GPG-KEY-oracle.repo
I've given :
yum install oracle-rdbms-server-11gR2-preinstall.x86_64
and works perfectly

Resources