[Elecraft] KX3 Utility Linux version

a45wg ts2018 at sy-edm.com
Tue Jun 12 03:26:16 EDT 2018


KX3 Utils

I am running a totally basic Ubuntu Environment (64 bit).

I will get the KX3 Utils, extract and check the file type

    mkdir /elecraft 
    chdir /elecraft
    wget http://www.elecraft.com/software/KX3/KX3UtilityLINUX_1_16_6_25.tgz  
    tar -zxvf KX3UtilityLINUX_1_16_6_25.tgz
    cd kx3util_1_16_6_25

Now to see what this file is 

    file file kx3util

I get the following output….

kx3util: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, for GNU/Linux 2.6.0, stripped

Ok  - it is a 32bit Image… So it will not run. 

Here’s how to fix it, by  adding the i386 Package ability, and then adding some needed libs

    dpkg --add-architecture i386
    apt-get update 
    apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386

Now if I check the file kx3util I can see it has resolved the i386 links (because I added the the i386 libs)

ldd kx3util
	linux-gate.so.1 =>  (0xf77d0000)
	libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0xf77c4000)
	libpthread.so.0 => /lib/i386-linux-gnu/libpthread.so.0 (0xf77a7000)
	libstdc++.so.6 => /usr/lib/i386-linux-gnu/libstdc++.so.6 (0xf7630000)
	libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0xf75db000)
	libgcc_s.so.1 => /lib/i386-linux-gnu/libgcc_s.so.1 (0xf75be000)
	libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xf7407000)
	/lib/ld-linux.so.2 (0xf77d1000)

Hope that is a slightly clearer instruction.

Should you want to automate this using Docker, this is the docker script for this.


FROM ubuntu:16.04
MAINTAINER a45wg at sy-edm.com

#Purpose of this project is test KX3 util
#by adding i386 lib references
#It will pull the elecraft kx3 utility into /elecraft
#
#Suggested Build:
#    docker -t test/kx3:1.0 dockerfile
#
#Suggested Run:
#    docker run -it test/kx3:1.0
run apt-get update && \
    apt-get install wget -y

run dpkg --add-architecture i386 && \
    apt-get update && \
    mkdir /elecraft && \
    chdir /elecraft && \
    wget http://www.elecraft.com/software/KX3/KX3UtilityLINUX_1_16_6_25.tgz && \
    tar -zxvf KX3UtilityLINUX_1_16_6_25.tgz && \
    apt-get install -y libc6:i386 libncurses5:i386 libstdc++6:i386



Best regards

	Tim, A45WG => DU3/M0FGC



More information about the Elecraft mailing list