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.
Related
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).
I wish to install redis on my red-hat environment. I do the following:
wget http://download.redis.io/redis-stable.tar.gz
tar xvzf redis-stable.tar.gz
cd redis-stable
make
I got the next error:
make[3]: *** [net.o] Error 127
make[3]: Leaving directory `/tmp/redis-stable/deps/hiredis'
make[2]: *** [hiredis] Error 2
make[2]: Leaving directory `/tmp/redis-stable/deps'
make[1]: [persist-settings] Error 2 (ignored)
CC adlist.o
/bin/sh: cc: command not found
make[1]: *** [adlist.o] Error 127
make[1]: Leaving directory `/tmp/redis-stable/src'
make: *** [all] Error 2
How can I fix it?
You are trying to install redis from source code. What this process do is to compile and create executable on your machine and then install it. For doing this you need various tools like gcc etc. Best way is to install all of them together by installing that group. Run this from terminal
yum grouplist
This will show all groups available and then choose group you want to install or run directly
yum groupinstall 'Development Tools'
This will save you from other problems which might come in future while installing from source.
for those of you who encounter this error
check this github issue
before make run this command
$ cd deps; make hiredis lua jemalloc linenoise
Install build essential first
sudo apt-get install build-essential
then install the dependencies
cd deps
make hiredis lua jemalloc linenoise
If you're not an advanced user maybe it is not a good idea to install REDIS from the source.
Instead you should install a packaged version. For example on Fedora / Centos / RHEL:
sudo yum install redis
Come out from your extracted folder/Dir and remove the extracted redis-x.x.x folder with rm -rf redis-x.x.x
now again extract the redis folder with tar xzf redis-x.x.x.tar.gz
go to redis directory again and run the make or make test again. it works for me.
I'm installing valgrind now, until the ‘make install’ command it goes good.
The next command- ‘make regtest’ outputs the next error:
../../depcomp: line 689: exec: g++: not found
make[5]: *** [leak_cpp_interior.o] Error 127
make[5]: Leaving directory `/home/kbubuntu/valgrind-3.9.0/memcheck/tests'
make[4]: *** [check-am] Error 2
make[4]: Leaving directory `/home/kbubuntu/valgrind-3.9.0/memcheck/tests'
make[3]: *** [check-recursive] Error 1
make[3]: Leaving directory `/home/kbubuntu/valgrind-3.9.0/memcheck/tests'
make[2]: *** [check-recursive] Error 1
make[2]: Leaving directory `/home/kbubuntu/valgrind-3.9.0/memcheck'
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory `/home/kbubuntu/valgrind-3.9.0'
make: *** [check] Error 2
How can I solve it?
Thanks.
Short answer: Make from source.
How?
Uninstall the non working valgrind version with root rights (eg. sudo):
apt-get --purge valgrind
or
dpkg --remove valgrind
or
yum remove valgrind
Obtain sources from here.
Identify the latest version (for example 3.17.0)
Download sources : wget https://sourceware.org/pub/valgrind/valgrind-3.17.0.tar.bz2
Decompress archive tar xvf valgrind-3.17.0.tar.bz2
Go to uncompressed archive cd valgrind-3.17.0
Configure ./configure
Compile make
Install make install (with root rights, eg. sudo)
Note: very useful for Raspberry Pi 4 users - Default valgrind installation generate a lot of internal errors. See Valgrind reports hundreds of errors in Hello World program on RaspberryPi 4B
All major linux distributions will include valgrind in their repositories. You can find this on debian derived, apt based systems with:
apt search valgrind
But first just try:
apt install valgrind
It should work, and pull in any dependencies. Remember, if you are not the superuser, you'll need to preface those with sudo.
It's a great tool, have fun.
i think its due to dependency not met.
install g++
by
sudo apt-get install g++
then try again.
error is due to exec is unable to find any package named g++
When trying to install Valgrind in Ubuntu 20.04, you can use apt or snap (notice the version number):
:~/valgrind-3.18.1$ valgrind
Command 'valgrind' not found, but can be installed with:
sudo snap install valgrind # version 3.18.1, or sudo apt install
valgrind # version 1:3.15.0-1ubuntu9.1
Although snap provides the latest version, I preferred to install it natively by compiling the source code following the #g10guang instructions.
I am using checkinstall to prepare debian package in my ubuntu machine. I did following procedure to prepare it
source_file_directory/ make
checkinstall -D make install
I got following at the end.
Installing with make...Installing with install...
========================= Installation results ===========================
make: *** No rule to make target `install'. Stop.
**** Installation failed. Aborting package creation.
Cleaning up...OK
Bye.
Did you do the ./configure before the make? There should be a readme file with instructions to configure/compile/install the package.
You do not need to specify the 'make install' as that is the default.
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...