<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Build Nautilus Trader on Ubuntu 24.04]]></title><description><![CDATA[Build Nautilus Trader on Ubuntu 24.04]]></description><link>https://smartrade.hashnode.dev</link><generator>RSS for Node</generator><lastBuildDate>Tue, 24 Nov 2026 11:26:46 GMT</lastBuildDate><atom:link href="https://smartrade.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[Build Nautilus Trader on Ubuntu 24.04]]></title><description><![CDATA[Nautilus Trader is the fastest, most reliable open-source trading platform. Nautilus Trader uses Rust programming language to construct a mission-critical…]]></description><link>https://smartrade.hashnode.dev/build-nautilus-trader-on-ubuntu-2404</link><guid isPermaLink="true">https://smartrade.hashnode.dev/build-nautilus-trader-on-ubuntu-2404</guid><category><![CDATA[nautilus trader]]></category><dc:creator><![CDATA[bloodarksoul]]></dc:creator><pubDate>Sat, 15 Mar 2025 22:50:18 GMT</pubDate><content:encoded><![CDATA[<p>Nautilus Trader is the fastest, most reliable open-source trading platform.</p>
<p>Nautilus Trader uses Rust programming language to construct a mission-critical core of the platform for taking advantage of Python libraries on the financial market, avoiding slow speed of executing simultaneously.</p>
<p>----------</p>
<p>Brief Introduction of Rust</p>
<p>Rustc is the compiler for the <em>Rust</em> programming language</p>
<p>Cargo is the Rust <em>package manager</em>. Cargo downloads your Rust package’s dependencies, compiles your packages, makes distributable packages, and uploads them to crates.io, the Rust community’s <em>package registry</em></p>
<p>Rustup is toolchain management of Rust. It makes cross-compiling simpler with binary builds of the standard library for common platforms. Rust is installed and managed by the <a target="_blank" href="https://rust-lang.github.io/rustup/"><code>rustup</code></a> tool</p>
<p>In the Rust development environment, all tools are installed to the <code>~/.cargo/bin</code> directory, and this is where you will find the Rust toolchain, including <code>rustc</code>, <code>cargo</code>, and <code>rustup.</code></p>
<p><img src="https://denritech.wordpress.com/wp-content/uploads/2025/03/image.png?w=742" alt /></p>
<p>---------</p>
<p>When I built the source code of Nautilus Trader (version 1.213.0)  on Ubuntu 24.04 with my laptop computer( Dell Inc. XPS 13 9305), which has 8-core 111th Gen Intel® Core™ i5 and 8G memory, two fatal issues happened:</p>
<p>1. System crashed. The Rust build process ($cargo build) is killed by (signal: 9, SIGKILL: kill).</p>
<p>2. link failed. The linking process (uv sync -v --all-groups --all-extras )is killed by (signal: 9, SIGKILL: kill).</p>
<p>The reason of system crashed</p>
<p>When executing "cargo build" on nautilus_trader folder, especially when it's going through the build process of crate pyo3 or adaptor tardis, <strong>the Rust building process uses all of memory and CPU resources by default setting</strong>, which causes the No.1 issue.</p>
<p>How to solve the issue</p>
<p>Add the below setting on <strong>.cargo/config.toml</strong> to limit using of resources.</p>
<p><strong>[build]<br />jobs = 1</strong></p>
<p>The reason of link process killed.</p>
<p>The default C language compiler and linker on my Linux is gcc and ld. Use gcc toolchain causes the No.2 issue.</p>
<p>How to solve the issue</p>
<p>Use clang and lld instead of gcc toolchain.</p>
<p>Also need to add the below setting on <strong>.cargo/config.toml</strong>.</p>
<p><strong>[target.x86_64-unknown-linux-gnu]<br />linker="clang"<br />rustflags = [</strong></p>
<p><strong>"-C", "link-arg=-fuse-ld=lld",</strong></p>
<p><strong>]</strong></p>
]]></content:encoded></item></channel></rss>