Skip to main content
almarefa.net

Back to all posts

How to Install OpenXLSX on Linux?

Published on
2 min read
How to Install OpenXLSX on Linux? image

Best Tools for OpenXLSX Installation on Linux to Buy in November 2025

1 EZITSOL 32GB 9-in-1 Linux bootable USB for Ubuntu,Linux Mint,Mx Linux,Zorin OS,Linux Lite,ElementaryOS etc.| Try or Install Linux | Top 9 Linux for Beginners| Boot Repair | multiboot USB

EZITSOL 32GB 9-in-1 Linux bootable USB for Ubuntu,Linux Mint,Mx Linux,Zorin OS,Linux Lite,ElementaryOS etc.| Try or Install Linux | Top 9 Linux for Beginners| Boot Repair | multiboot USB

  • 9-IN-1 LINUX DISTROS: EXPLORE MULTIPLE LINUX OPTIONS IN ONE USB!

  • TRY BEFORE YOU INSTALL: TEST DISTROS WITHOUT TOUCHING YOUR HARD DRIVE.

  • BEGINNER-FRIENDLY GUIDES: EASY-TO-USE SOFTWARE FOR SMOOTH TRANSITIONS!

BUY & SAVE
$19.77
EZITSOL 32GB 9-in-1 Linux bootable USB for Ubuntu,Linux Mint,Mx Linux,Zorin OS,Linux Lite,ElementaryOS etc.| Try or Install Linux | Top 9 Linux for Beginners| Boot Repair | multiboot USB
2 The Linux Command Line, 2nd Edition: A Complete Introduction

The Linux Command Line, 2nd Edition: A Complete Introduction

BUY & SAVE
$23.99 $39.99
Save 40%
The Linux Command Line, 2nd Edition: A Complete Introduction
3 Linux Pocket Guide: Essential Commands

Linux Pocket Guide: Essential Commands

BUY & SAVE
$19.75 $29.99
Save 34%
Linux Pocket Guide: Essential Commands
4 Linux Mint Cinnamon 22 64-bit Live USB Flash Drive, Bootable for Install/Repair

Linux Mint Cinnamon 22 64-bit Live USB Flash Drive, Bootable for Install/Repair

  • INSTALL OR REPAIR LINUX MINT EASILY WITH OUR BOOTABLE USB DRIVE!
  • TRY LINUX MINT LIVE, HASSLE-FREE, BEFORE YOU COMMIT TO INSTALLATION!
  • BOOT UP AND INSTALL WITH SIMPLE ON-SCREEN INSTRUCTIONS-NO FUSS!
BUY & SAVE
$14.49 $17.99
Save 19%
Linux Mint Cinnamon 22 64-bit Live USB Flash Drive, Bootable for Install/Repair
5 Generic Ubuntu Linux 24.04 LTS (Latest Version) Bootable Live USB Flash Drive 64-bit for PC/Laptop, Black

Generic Ubuntu Linux 24.04 LTS (Latest Version) Bootable Live USB Flash Drive 64-bit for PC/Laptop, Black

  • ADVANCED THREAT PROTECTION: SAFEGUARD YOUR DATA AGAINST MALWARE AND RANSOMWARE.

  • FAST BOOT TIMES: GET STARTED QUICKLY WITH IMPROVED BOOT PERFORMANCE.

  • WIDE HARDWARE SUPPORT: EASILY RUNS ON VARIOUS HARDWARE SETUPS WITH SECURE FEATURES.

BUY & SAVE
$16.99 $17.99
Save 6%
Generic Ubuntu Linux 24.04 LTS (Latest Version) Bootable Live USB Flash Drive 64-bit for PC/Laptop, Black
6 Linux Pocket Guide: Essential Commands

Linux Pocket Guide: Essential Commands

BUY & SAVE
$24.99
Linux Pocket Guide: Essential Commands
7 Linux Basics for Hackers: Getting Started with Networking, Scripting, and Security in Kali

Linux Basics for Hackers: Getting Started with Networking, Scripting, and Security in Kali

BUY & SAVE
$18.73 $39.99
Save 53%
Linux Basics for Hackers: Getting Started with Networking, Scripting, and Security in Kali
8 Kali Linux OS for Hackers - Bootable Live Install USB Flash Thumb Drive - Cybersecurity Hacking Tools and Penetration Testing

Kali Linux OS for Hackers - Bootable Live Install USB Flash Thumb Drive - Cybersecurity Hacking Tools and Penetration Testing

  • DUAL USB-C COMPATIBILITY: WORKS ON ANY PC, OLD OR NEW-UNMATCHED VERSATILITY!

  • NO ACCOUNT, NO HASSLE: ENJOY PRIVACY AND SPEED WITHOUT FORCED UPDATES.

  • 600+ SECURITY TOOLS: KICKSTART YOUR ETHICAL HACKING CAREER WITH KALI'S SUITE!

BUY & SAVE
$20.99
Kali Linux OS for Hackers - Bootable Live Install USB Flash Thumb Drive - Cybersecurity Hacking Tools and Penetration Testing
9 Pixiecube Linux Commands Line Mouse pad - Extended Large Cheat Sheet Mousepad. Shortcuts to Kali/Red Hat/Ubuntu/OpenSUSE/Arch/Debian/Unix Programmer. Non-Slip Gaming Desk mat

Pixiecube Linux Commands Line Mouse pad - Extended Large Cheat Sheet Mousepad. Shortcuts to Kali/Red Hat/Ubuntu/OpenSUSE/Arch/Debian/Unix Programmer. Non-Slip Gaming Desk mat

  • SPACIOUS DESIGN: AMPLE 800X300MM SIZE FOR LAPTOP & MOUSE USE.

  • QUICK REFERENCE: HANDY COMMAND LINES FOR ALL LINUX/UNIX USERS.

  • DURABLE & NON-SLIP: HEAVY-DUTY BASE ENSURES STABILITY FOR GAMING.

BUY & SAVE
$20.95
Pixiecube Linux Commands Line Mouse pad - Extended Large Cheat Sheet Mousepad. Shortcuts to Kali/Red Hat/Ubuntu/OpenSUSE/Arch/Debian/Unix Programmer. Non-Slip Gaming Desk mat
10 Linux Stickers 62pcs Work Decals Aesthetic Waterproof Vinyl Pack Stickers for Water Bottle Laptop Adults Phone Skateboard DIY Decorative Supplies Activities Party

Linux Stickers 62pcs Work Decals Aesthetic Waterproof Vinyl Pack Stickers for Water Bottle Laptop Adults Phone Skateboard DIY Decorative Supplies Activities Party

  • UNIQUE, VARIED GRAFFITI STICKERS OFFER ENDLESS CREATIVE COMBINATIONS.
  • HIGH-DEFINITION, WATERPROOF VINYL ENSURES DURABILITY AND VIBRANT COLORS.
  • PERFECT FOR GIFTS AND VERSATILE USE ON ANY SURFACE IMAGINABLE!
BUY & SAVE
$7.99
Linux Stickers 62pcs Work Decals Aesthetic Waterproof Vinyl Pack Stickers for Water Bottle Laptop Adults Phone Skateboard DIY Decorative Supplies Activities Party
+
ONE MORE?

To install OpenXLSX on Linux, follow these steps:

  1. Open a terminal.
  2. Ensure that you have the necessary prerequisites to build and install OpenXLSX. These prerequisites typically include the CMake build system, a C++ compiler, and the zlib compression library. Install them if they are not already present on your system.
  3. Download the OpenXLSX source code from the official repository. You can either download a zip archive or clone the Git repository using the git command.
  4. Extract the downloaded zip archive or navigate to the cloned repository directory using the cd command.
  5. Create a build directory within the OpenXLSX source directory using the mkdir command.
  6. Navigate to the build directory using the cd command.
  7. Run the CMake build process to generate build files for your system. Execute the following command in the terminal: cmake ..
  8. After the CMake process completes successfully, build OpenXLSX by running the make command.
  9. Once the build process finishes, you can install OpenXLSX by running the sudo make install command. This will copy the necessary files to the appropriate system directories.
  10. Verify the installation by including the OpenXLSX headers in your C++ code and compiling it.

Remember to consult the OpenXLSX documentation and the specific guides for your Linux distribution to ensure a smooth installation.

What is the OpenXLSX documentation website?

The OpenXLSX documentation website can be found at the following link: https://openxlsx.readthedocs.io/en/stable/

What is the procedure to write data to an Excel file using OpenXLSX on Linux?

To write data to an Excel file using OpenXLSX on Linux, you need to follow the steps below:

  1. Install OpenXLSX library: Clone the OpenXLSX repository from GitHub: git clone https://github.com/troldal/OpenXLSX.git Navigate to the OpenXLSX directory: cd OpenXLSX Build the project: cmake . && make Install the library: sudo make install
  2. Include the necessary headers in your C++ program:

#include <OpenXLSX/OpenXLSX.h>

  1. Create and open an Excel workbook:

OpenXLSX::XLDocument doc; doc.create("./path/to/myfile.xlsx");

  1. Access a worksheet from the workbook:

OpenXLSX::XLWorksheet worksheet = doc.workbook().worksheet("Sheet1");

  1. Write data to the cells:

worksheet.cell("A1").value().setString("Hello"); worksheet.cell("B1").value().setString("World");

  1. Save and close the workbook:

doc.save(); doc.close();

That's it! You have successfully written data to an Excel file using OpenXLSX on Linux. Remember to replace ./path/to/myfile.xlsx with the desired file path.

What is the latest version of OpenXLSX?

As of my knowledge, the latest version of OpenXLSX is version 4.2.0, released on June 30, 2021.