LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


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

Rep: Reputation: Disabled
Compiling a binary for older kernel


Hi
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, 01:52 AM   #2
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,810
Blog Entries: 1

Rep: Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067
http://ftp5.gwdg.de/pub/opensuse/dis...tion/11.4/iso/ has 2.6.37. Which 2.6 do you need?
 
Old 01-21-2019, 05:09 AM   #3
razing32
LQ Newbie
 
Registered: Sep 2016
Posts: 12

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

F5
Linux 2.6.32-431.56.1.el6.f5.x86_64

Checkpoint
Linux 2.6.18-92cpx86_64
 
Old 01-21-2019, 08:52 AM   #4
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,810
Blog Entries: 1

Rep: Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067Reputation: 2067
http://ftp5.gwdg.de/pub/linux/centos/6.10/isos/ has 2.6.32
http://ftp5.gwdg.de/pub/linux/centos...el6.x86_64.rpm

http://ftp5.gwdg.de/pub/opensuse/dis.../10.2/iso/dvd/ has 2.6.18
http://ftp5.gwdg.de/pub/opensuse/dis....13.x86_64.rpm
10.3 went to 2.6.22
http://ftp5.gwdg.de/pub/opensuse/dis...0.4.x86_64.rpm

Oldest I found for Fedora:
https://archives.fedoraproject.org/p...fc7.x86_64.rpm

Fedora 2.6.32 closest:
https://archives.fedoraproject.org/p...c12.x86_64.rpm
 
1 members found this post helpful.
Old 01-21-2019, 04:18 PM   #5
razing32
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 .
 
  


Reply



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 01:05 PM
Need to match older machine to an older version of Linux fredb47 Linux - Distributions 10 10-27-2011 11:08 AM
[SOLVED] Compiling Older kernel with new kernel headers exvor Linux - General 5 12-13-2009 08:21 PM
Do I need binary 1 and binary 2 dvd iso for base install? salah-ad-din Debian 5 08-15-2006 04:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 09:28 AM.

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