Problem compiling Linux source - linux

I am trying to compile Linux source but always get qt missing, here is a output
[root#localhost linux-2.6.32.5]# yum install qt3
Loaded plugins: refresh-packagekit
Setting up Install Process
Package qt3-3.3.8b-25.fc11.i586 already installed and latest version
Nothing to do
[root#localhost linux-2.6.32.5]# make xconfig
CHECK qt
*
* Unable to find the QT3 installation. Please make sure that
* the QT3 development package is correctly installed and
* either install pkg-config or set the QTDIR environment
* variable to the correct location.
*
make[1]: *** No rule to make target `scripts/kconfig/.tmp_qtcheck', needed by `scripts/kconfig/qconf.o'. Stop.
make: *** [xconfig] Error 2
[root#localhost linux-2.6.32.5]# echo $QTDIR
/usr/lib/qt-3.3
[root#localhost linux-2.6.32.5]#
What can be the problem ?

Could it be that the qt3 package you are installing contains just the libraries, but not the header files? Maybe you have to install package qt3-devel or something similar for your linux distribution...

Related

Cannot make kernel .config

I'm setting up RTLinux on a Siemens machine. I cannot seem to generate the config file for the kernel.
I have been following this guide: Install RT Linux patch for Ubuntu and I get stuck at Step 4
I started by installing ubuntu 16.10. Then I installed the linux kernel (linux-5.2.19.tar.gz) and also the RTLinux patch (patch-5.2.19-rt10.patch.gz). I created a working irectory ~/kernel. I unzipped the kernel into this directory and successfully patched the kernel.
I now need to install ncurses:
sudo apt-get install libncurses-dev libssl-dev
When I do this I get a bunch of 404 errors like it cannot reach the archives.
Because of this I went and installed ncurses manually. I went to https://ftp.gnu.org/pub/gnu/ncurses/ncurses-6.1.tar.gz, downloaded the tar and performed the following steps.
cd ncurses-6.1
./configure --prefix=/opt/ncurses
make
sudo make install
ls -la /opt/ncurses
The final line verified the install was correct.
Now I navigate back to my ~/kernel/linux-5.2.19 directory and perform a make menuconfig
and receive the following errors:
*
* Unable to find the ncurses package.
* Install ncurses (ncurses-devel or libncurses-dev
* depending on your distribution).
*
scripts/kconfig/Makefile:206: recipe for target 'scripts/kconfig/mconf-cfg' failed
make[1]: *** [scripts/kconfig/mconf-cfg] Error 1
Makefile:559: recipe for target 'menuconfig' failed
make: *** [menuconfig] Error 2
I appreciate any responses/advice.

make menuconfig excuting error from ti-processor-sdk-linux-am335x-evm-01.00.00.03

I have Installed libncurses for menuconfig and try to run the command but i am getting an
Error :
-support/linux-3.14.43+gitAUTOINC+875c69b2c3-g875c69b> make menuconfig
* Unable to find the ncurses libraries or the
* required header files.
*** 'make menuconfig' requires the ncurses libraries.
*** Install ncurses (ncurses-devel) and try again.
make[1]: * [scripts/kconfig/dochecklxdialog] Error 1
make: * [menuconfig] Error 2
but I am able to configure for ti-sdk-am335x-evm-06.00.00.00 and run $ make uImage but in case of ti-processor-sdk-linux-am335x-evm-01.00.00.03 getting error is as mentioned.
I have tried :
Try the various interfaces for configuring the kernel.
host$ make menuconfig
host$ make xconfig
host$ make gconfig
I had to run the following to get these to work.
host$ sudo apt-get install libncurses5-dev
host$ sudo apt-get install qt3-dev-tools
host$ sudo apt-get install libglade2-dev
but it didnt work.
Thanks
Try running the make menuconfig in a shell that does not have the cross-compilation environment setup. That way the menuconfig will use the host's ncurses libraries that #Michi mentions. I had the same problem while working with Yocto and trying to do an out-of-tree kernel build with a Yocto built SDK (using populate_sdk).

FFmpeg -bash: ffmpeg: command not found

OK, so I have gone up and down the internet trying to figure out what it is I am doing wrong ... and yet I'm in the middle of nowhere.
I am basically trying to install the FFmpeg on my CENTOS 6.6 dedicated server by following the instructions here: https://trac.ffmpeg.org/wiki/CompilationGuide/Centos
Everything seems to go just fine throughout the process. When it's all done, I type in "ffmpeg" hit the enter and keep on getting this extremely ugly error:
-bash: -bash:: command not found
I'm not much of a shell guy, but working with it all day today, I can say that this means that it's not installed correctly. So, I tried re-installing it, and it tells me all the packages already exist now ... . Here is a copy if what I am doing and what I am getting:
root#server1 [~]# ffmpeg -version
-bash: ffmpeg: command not found
root#server1 [~]# yum install autoconf automake gcc gcc-c++ git libtool make nasm pkgconfig zlib-devel
Loaded plugins: fastestmirror, priorities, security
Setting up Install Process
Loading mirror speeds from cached hostfile
* base: centos.mirror.ndchost.com
* extras: centos-distro.cavecreek.net
* updates: mirrors.easynews.com
Package autoconf-2.63-5.1.el6.noarch already installed and latest version
Package automake-1.11.1-4.el6.noarch already installed and latest version
Package gcc-4.4.7-11.el6.x86_64 already installed and latest version
Package gcc-c++-4.4.7-11.el6.x86_64 already installed and latest version
Package git-1.7.1-3.el6_4.1.x86_64 already installed and latest version
Package libtool-2.2.6-15.5.el6.x86_64 already installed and latest version
Package 1:make-3.81-20.el6.x86_64 already installed and latest version
Package nasm-2.07-7.el6.x86_64 already installed and latest version
Package 1:pkgconfig-0.23-9.1.el6.x86_64 already installed and latest version
Package zlib-devel-1.2.3-29.el6.x86_64 already installed and latest version
Nothing to do
Any ideas or help is greatly appreciated!
OK, after paying more attention, I realized that there was an error
Unable to create and execute files in /tmp. Set the TMPDIR environment
variable to another directory and make sure that it is not mounted noexec.
Sanity test failed.
So, I just made the /tmp directory and ran this:
export TMPDIR=$HOME/tmp
And then ran the installation command!

Can't make menuconfig

I use Debian 7.4 Wheezy. I trying to upgrade my kernel, but when I type "make menuconfig" it says:
*** Unable to find the ncurses libraries or the
*** required header files.
*** 'make menuconfig' requires the ncurses libraries.
***
*** Install ncurses (ncurses-devel) and try again.
***
make[1]: *** [scripts/kconfig/dochecklxdialog] Error 1
make: *** [menuconfig] Error 2
I trying to install "libncurses5-dev", but I get the error:
E: Unable to locate package libncurses5-dev
P.S.
I downloaded and installed the packages manually and now everything is okay!
Thanks a lot!!
You should have run (as root)
aptitude update
aptitude search libncurses
that would suggest you the right package name.
Then try
aptitude install libncurses-dev
and
aptitude install kernel-package
aptitude build-dep linux-image linux-image-amd64
At last, use make-kpkg --initrd binary to compile your kernel. (it will produce *.deb files in the parent directory). You want to configure /etc/kernel-pkg.conf and perhaps /etc/kernel-img.conf
I had the same problem. In my case installation of package libncursesw5-dev solved the issue.
make menuconfig needs ncurses libraries try following command to install ncurses library
sudo apt-get install libncurses5
sudo apt-get install libncurses5-dev
make menuconfig
worked for me after i installed all the libaries, and added myself sudo permission, i was also using this to cross_compile stuff
# Allow members of group sudo to execute any command
%sudo ALL=(ALL:ALL) NOPASSWD:ALL
%b37399 ALL=(ALL:ALL) NOPASSWD:ALL
For Fedora(Red Hat);
$ make menuconfig
#error encountered :
make[1]: *** [scripts/kconfig/Makefile:210: scripts/kconfig/mconf-cfg] Error 1
make: *** [Makefile:588: menuconfig] Error 2
#resolution :
$ sudo yum install libncurses-dev
Thanks
Depending on the project the menuconfig could be made with the kconfiglib library:
https://pypi.org/project/kconfiglib/
For these projects it's required to:
Install Python (I tested it with Python2.7, but I think newer Pythons are just fine)
Install pip (if it's not done with Python)
And then the pip install kconfiglib
And for some projects, this will fix the error instead of the libcurses package.
Just as example here is one kconfiglib based project which prints the same error, but will not be fixed with libcurse:
https://github.com/polarfire-soc/hart-software-services

R package installation in Linux

I am trying to install a R package in Ubuntu using the following commands:
R CMD INSTALL rpart_4.1-5.tar.gz
install.packages("/home/rpart_4.1-5.tar.gz", repos = NULL, type="source")
* installing to library '/R/library'
* installing *source* package 'rpart' ...
** package 'rpart' successfully unpacked and MD5 sums checked
** libs
sh: make: command not found
ERROR: compilation failed for package 'rpart'
* removing '/R/library/rpart'
I have GCC 4.8.2 installed and the command gcc -v provides the following output:
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/tools/stow/gcc-4_8_2-2.x86-64.linux.centos.5/bin/../libexec/gcc/x86_64-unknown-linux-gnu/4.8.2/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc-4.8.2/configure --prefix=/mnt/gcc/buildir/gcc-4.8.2
Thread model: posix
gcc version 4.8.2 (GCC)
Last time I face the same issue, installing GCC (same version) solved it (posted a similar query on Stackoverflow on this topic). However, this time it is not working. Could someone please let me know what is causing this issue.
UPDATE: We are trying to manually install the dependencies to see if it works. We have installed Make and GCC 4.8.2:
However, I still get the following error:
* installing to library '/opt/vertica/R/library'
* installing *source* package 'rpart' ...
** package 'rpart' successfully unpacked and MD5 sums checked
** libs
cc -std=gnu99 -I/opt/vertica/R/include -DNDEBUG -I/usr/local/include -fpic -c anova.c -o anova.o
make: cc: Command not found
make: *** [anova.o] Error 127
ERROR: compilation failed for package 'rpart'
* removing '/opt/vertica/R/library/rpart'
Are there any other dependencies that we need to install apart from Make and GCC?
Your system doesn't have make utility for compilation.
Please execute following command to install make in your system.
sudo apt-get install build-essential
If you just do
sudo apt-get install r-base-dev
you all the key dependencies relevant for R package building which is what you want here. This includes the compiler, make etc as part of built-essential as well as specific libraries needed by R. There is a reason we created this package :)
If your machine does not have permanent internet access, look for previously-asked questions about "apt-get without internet access" etc.

Resources