Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Linux - Kernel This forum is for all discussion relating to the Linux kernel.


  Search this Thread
Old 01-20-2019, 04:29 PM   #1
LQ Newbie
Registered: Sep 2016
Posts: 12

Rep: Reputation: Disabled
Compiling a binary for older kernel

I am trying to compile HTOP to run on F5 and Checkpoint boxes.(they are based on linux)
These are both running kernel 2.6 (64bit)
I could try compiling it on the boxes themselves but they don't have GCC
I tried compiling on my system(arch , kernel 4.20) but the binary cannot be run . I get a "cannot execute binary file" error.
Any advice how i can better approach this ?
Are there any distros with older kernels on 64 bit ?
Old 01-21-2019, 02:52 AM   #2
Senior Member
Registered: Aug 2016
Location: USA
Distribution: openSUSE, Debian, Knoppix, Mageia, Fedora, others
Posts: 1,117

Rep: Reputation: 339Reputation: 339Reputation: 339Reputation: 339 has 2.6.37. Which 2.6 do you need?
Old 01-21-2019, 06:09 AM   #3
LQ Newbie
Registered: Sep 2016
Posts: 12

Original Poster
Rep: Reputation: Disabled
Originally Posted by mrmazda View Post
Here's what I have exactly

Linux 2.6.32-431.56.1.el6.f5.x86_64

Linux 2.6.18-92cpx86_64
Old 01-21-2019, 05:18 PM   #5
LQ Newbie
Registered: Sep 2016
Posts: 12

Original Poster
Rep: Reputation: Disabled
I can report success on the 2.6.32 version.
I ran Centos in a VM and managed to get the thing to build after installing gcc and ncurses-devel.
I copied the binary to my F5 virtual machine and it ran just fine.
Now running into an issue with the opensuse (2.6.18) one since i think the htop source is written for python 3 and OpenSuse comes with python 2 .
May try compiling an older version or trying to get python 3 on the opensuse vm.

(not sure if i will keep the thread open since my question is answered regarding the old kernels and where to find them)

Thank you very much for your help so far .


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Running new binary into older distro coltson Linux - Software 2 10-28-2016 02:05 PM
Need to match older machine to an older version of Linux fredb47 Linux - Distributions 10 10-27-2011 12:08 PM
[SOLVED] Compiling Older kernel with new kernel headers exvor Linux - General 5 12-13-2009 09:21 PM
Do I need binary 1 and binary 2 dvd iso for base install? salah-ad-din Debian 5 08-15-2006 05:43 PM > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 05:14 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration