pho ramen soba

Tuesday, 30 January 2024

installing deno 1.40.2 via rust’s cargo on ubuntu 23.10 & raspberry pi 5

Site logo image whbeebe posted: "I have been tinkering with Deno since before I ever started tinkering with the language it's written in, Rust. It was Deno that finally convinced me to get serious about learning the Rust language. One of the benefits of installing Rust on any system is t" Arcane Science Lab Read on blog or Reader

installing deno 1.40.2 via rust's cargo on ubuntu 23.10 & raspberry pi 5

whbeebe

January 30

I have been tinkering with Deno since before I ever started tinkering with the language it's written in, Rust. It was Deno that finally convinced me to get serious about learning the Rust language. One of the benefits of installing Rust on any system is that you can install Deno with the Rust command cargo install deno. With that, Rust/cargo will download every source file and build Deno for you.

It's been a while since I built Deno via Rust's cargo. Once it's installed you can run deno upgrade and it will pull down the latest release and install it for you. That works pretty well for any supported environment, unless you're using Ubuntu 23.10 on a Raspberry Pi 5. If you try to install Deno the officially documented way, you get the following:

Error: Official Deno builds for Linux aarch64 are not available.

Which means you're going to build it from source. Fortunately Rust is available for this environment or else this post wouldn't be here.

While building Deno I did run into one significant problem. The build failed right in the middle:

Rust build error of Deno
Rust build error of Deno

A little bit of search led me to install protoc via sudo apt install protobuf-compiler. Once installed I followed the directions about setting CARGO_TARGET_DIR and restarted the build, which then went on to build successfully. I checked for life:

  $ which deno  /home/pi/.cargo/bin/deno  $ deno --version  deno 1.40.2 (release, aarch64-unknown-linux-gnu)  v8 12.1.285.6  typescript 5.3.3  

And now I'm the proud "owner" of Deno on this Raspberry Pi 5. By the way, if you want to see how the Raspberry Pi handled the task, here's a taste of it via btop:

btop showing Rust cargo build of Deno on a Raspberry Pi 5
btop showing Rust cargo build of Deno on a Raspberry Pi 5

You'll note that all four cores on the processor are running 100%, yet the temperature was around 60°C. This shows how well the active cooling is working on the Raspberry Pi 5.

 

Comment
Like
Tip icon image You can also reply to this email to leave a comment.

Arcane Science Lab © 2024. Manage your email settings or unsubscribe.

WordPress.com and Jetpack Logos

Get the Jetpack app

Subscribe, bookmark, and get real-time notifications - all from one app!

Download Jetpack on Google Play Download Jetpack from the App Store
WordPress.com Logo and Wordmark title=

Automattic, Inc. - 60 29th St. #343, San Francisco, CA 94110  

at January 30, 2024
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Featured Recipe: Crispy Peanut Tofu & Cauliflower Rice Stir-Fry

Crispy baked tofu in a 5-ingredient peanut glaze! Serve over cauliflower rice with sautéed veggies for a flavorful...

  • [New post] This tried-and-true Irish pub-inspired soup is creamy and thick with chunks of potatoes and leeks throughout.
    Emily Morgan posted: "This tried-and-true Irish pub-inspired soup is creamy and thick with chunks of potatoes and leeks thr...
  • LA COURONNE LYONNAISE, TWO WAYS
    This bread originates in Lyon, and is shaped as a crown, therefore the name ...
  • Keto Chicken Pot Pie Casserole (Gluten-Free)
    INGREDIENTS US CustomaryMetric▢4 cups cooked chicken breast (roasted, rotisserie...

Search This Blog

  • Home

About Me

phoo, ramen, soba
View my complete profile

Report Abuse

Blog Archive

  • January 2026 (12)
  • December 2025 (17)
  • November 2025 (18)
  • October 2025 (21)
  • September 2025 (19)
  • August 2025 (28)
  • July 2025 (25)
  • June 2025 (28)
  • May 2025 (34)
  • April 2025 (36)
  • March 2025 (39)
  • February 2025 (36)
  • January 2025 (43)
  • December 2024 (46)
  • November 2024 (51)
  • October 2024 (44)
  • September 2024 (1172)
  • August 2024 (1572)
  • July 2024 (1413)
  • June 2024 (1289)
  • May 2024 (1362)
  • April 2024 (1472)
  • March 2024 (1827)
  • February 2024 (2413)
  • January 2024 (2936)
  • December 2023 (2135)
  • November 2023 (1639)
  • October 2023 (1285)
  • September 2023 (918)
  • August 2023 (864)
  • July 2023 (795)
  • June 2023 (800)
  • May 2023 (796)
  • April 2023 (754)
  • March 2023 (649)
  • February 2023 (736)
  • January 2023 (1159)
  • December 2022 (968)
  • November 2022 (921)
  • October 2022 (852)
  • September 2022 (708)
  • August 2022 (766)
  • July 2022 (877)
  • June 2022 (684)
  • May 2022 (716)
  • April 2022 (698)
  • March 2022 (781)
  • February 2022 (734)
  • January 2022 (955)
  • December 2021 (1387)
  • November 2021 (3002)
  • October 2021 (3213)
  • September 2021 (3188)
  • August 2021 (3232)
  • July 2021 (1697)
Powered by Blogger.