Getting following error while making .deb pacakage using checkinstall - checkinstall

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.

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.

How to compile dansguardian

I am trying to download dansguardian on centos 7 but I am not able to do so. Please anybody can help for this.
I have downloaded tar.bz2 file of dansguardian and then performed these step
tar -xjvf taf_file
./configure
make
make: *** No targets specified and no makefile found. Stop.
make install
Trying install all development tools like this:
yum groupinstall 'Development Tools'
then run:
./configure
make
make install

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).

Redis - linux / Error when Installing redis on linux: `cc: command not found`

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.

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

Resources