{"id":16153735,"url":"https://github.com/moneroexamples/compile-monero-09-on-arch-linux","last_synced_at":"2026-03-18T18:07:32.412Z","repository":{"id":70343473,"uuid":"58290398","full_name":"moneroexamples/compile-monero-09-on-arch-linux","owner":"moneroexamples","description":"Compile Monero 0.9 on Arch Linux","archived":false,"fork":false,"pushed_at":"2017-02-19T02:31:46.000Z","size":867,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-06T23:41:47.757Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/moneroexamples.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-05-08T00:45:03.000Z","updated_at":"2023-07-26T11:16:36.000Z","dependencies_parsed_at":"2023-03-13T20:24:05.714Z","dependency_job_id":null,"html_url":"https://github.com/moneroexamples/compile-monero-09-on-arch-linux","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/moneroexamples/compile-monero-09-on-arch-linux","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moneroexamples%2Fcompile-monero-09-on-arch-linux","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moneroexamples%2Fcompile-monero-09-on-arch-linux/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moneroexamples%2Fcompile-monero-09-on-arch-linux/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moneroexamples%2Fcompile-monero-09-on-arch-linux/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/moneroexamples","download_url":"https://codeload.github.com/moneroexamples/compile-monero-09-on-arch-linux/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moneroexamples%2Fcompile-monero-09-on-arch-linux/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28604949,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T12:01:53.233Z","status":"ssl_error","status_checked_at":"2026-01-20T12:01:46.545Z","response_time":117,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-10T01:14:20.250Z","updated_at":"2026-01-20T14:34:01.402Z","avatar_url":"https://github.com/moneroexamples.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Compile Monero 0.9 on Arch Linux\n\nThe example shows how to compile the current github version of [Monero](https://getmonero.org/), as of 8 Sep 2016, on [Arch Linux](https://www.archlinux.org/). \n\n## Dependencies\nBefore proceeding with the compilation, the following packages are required:\n\n```bash\n#install git to download latest Monero source code from github\nsudo pacman -Su --needed git\n\n# install dependencies to be able to compile Monero\nsudo pacman -Su --needed base-devel cmake boost miniupnpc unbound graphviz doxygen libunwind pkg-config openssl curl gtest\n```\n\n## Compilation\n\n```bash\n# download the latest monero source code from github\ngit clone https://github.com/monero-project/bitmonero.git\n\n# go into monero folder\ncd bitmonero/\n\n# apply patch for using Onion Blockchain Explorer (optional)\n# https://github.com/moneroexamples/onion-monero-blockchain-explorer\n# curl https://raw.githubusercontent.com/moneroexamples/compile-monero-09-on-ubuntu-16-04/master/res/tx_blob_to_tx_info.patch | git apply -v -\n#\n\n# apply a patch for gcc 6.1\nwget -q -O - https://raw.githubusercontent.com/moneroexamples/compile-monero-09-on-arch-linux/master/fix_value_initialization.patch | git apply  -v -\n\n# compile\nmake release\n```\n\n## Installation\nAfter successful compilation, the Monero binaries should be located in `./build/release/bin` as shown below:\n\n```bash\n./build/release/bin/\n├── bitmonerod\n├── blockchain_converter\n├── blockchain_dump\n├── blockchain_export\n├── blockchain_import\n├── cn_deserialize\n├── connectivity_tool\n├── simpleminer\n└── simplewallet\n```\n\nI usually move the binaries into `/opt/monero/` folder. This can be done in the following way:\n\n```bash\n# optional\nsudo mkdir -p /opt/monero\nsudo mv -v ./build/release/bin/* /opt/monero/\n```\n\nThis should result in:\n```bash\n/opt/monero/\n├── monero-blockchain-export\n├── monero-blockchain-import\n├── monerod\n└── monero-wallet-cli\n```\n\nNow we can start the Monero daemon, i.e., `monerod`, and let it\ndownload the blockchain and synchronize itself with the Monero network. After that, you can run your the `monero-wallet-cli`.\n\n```bash\n# launch the Monero daemon and let it synchronize with the Monero network\n/opt/monero/monerod\n\n# launch the Monero wallet\n/opt/monero/monero-wallet-cli\n```\n\n## Useful aliases (with rlwrap)\n`monerod` and `monero-wallet-cli` do not have tab-compliton nor history.\nThis problem can be overcome using [rlwrap](https://github.com/hanslub42/rlwrap).\n\n```bash\n# install rlwrap\nsudo pacman -Su rlwrap wget\n\n# download monerod and monero-wallet-cli commands files\nwget -O ~/.bitmonero/monerocommands_bitmonerod.txt https://raw.githubusercontent.com/moneroexamples/compile-monero-09-on-xubuntu-16-04-beta-1/master/monerocommands_bitmonerod.txt\nwget -O ~/.bitmonero/monerocommands_simplewallet.txt https://raw.githubusercontent.com/moneroexamples/compile-monero-09-on-xubuntu-16-04-beta-1/master/monerocommands_simplewallet.txt\n\n# add aliases to .bashrc\necho \"alias moneronode='rlwrap -f ~/.monero/monerocommands_simplewallet.txt /opt/monero/monerod'\" \u003e\u003e ~/.bashrc\necho \"alias monerowallet='rlwrap -f ~/.bitmonero/monerocommands_bitmonerod.txt /opt/monero/monero-wallet-cli'\" \u003e\u003e ~/.bashrc\n\n# reload .bashrc\nsource ~/.bashrc\n```\n\nWith this, we can just start the daemon and wallet simply using\n`moneronode` and `monerowallet` commands. `rlwrap` will provide\ntab-complition and history for the Monero programs.\n\n## Example screenshot\n\n![Arch Screeshot](https://raw.githubusercontent.com/moneroexamples/compile-monero-09-on-ubuntu-16-04/master/imgs/ubuntu_screen.jpg)\n\n\n## Monero C++11 development (optional)\nIf you want to develop your own C++11 programs on top of Monero 0.9,\nMonero's static libraries and headers will be needed. Below is shown\nhow they can be setup for use to write your own C++11 programs based\non Monero. An example of such a program is  [access-blockchain-in-cpp](https://github.com/moneroexamples/access-blockchain-in-cpp).\n\n\n### Monero static libraries\n\nWhen the compilation finishes, a number of static Monero libraries\nshould be generated. We will need them to link against in our C++11 programs.\n\nSince they are spread out over different subfolders of the `./build/` folder, it is easier to just copy them into one folder. I assume that\n `/opt/monero-dev/libs` is the folder where they are going to be copied to.\n\n```bash\n# create the folder\nsudo mkdir -p /opt/monero-dev/libs\n\n# find the static libraries files (i.e., those with extension of *.a)\n# and copy them to /opt/monero-dev/libs\n# assuming you are still in monero/ folder which you downloaded from\n# github\nsudo find ./build/ -name '*.a' -exec cp -v {} /opt/monero-dev/libs  \\;\n```\n\n This should results in the following file structure:\n\n ```bash\n /opt/monero-dev/libs/\n ├── libblockchain_db.a\n ├── libblocks.a\n ├── libcommon.a\n ├── libcrypto.a\n ├── libcryptonote_core.a\n ├── libcryptonote_protocol.a\n ├── libdaemonizer.a\n ├── libgtest.a\n ├── libgtest_main.a\n ├── liblmdb.a\n ├── libminiupnpc.a\n ├── libmnemonics.a\n ├── libotshell_utils.a\n ├── libp2p.a\n ├── libringct.a\n ├── librpc.a\n └── libwallet.a\n```\n\n### Monero headers\n\nNow we need to get Monero headers, as this is our interface to the\nMonero libraries. Folder `/opt/monero-dev/headers` is assumed\nto hold the headers.\n\n```bash\n# create the folder\nsudo mkdir -p /opt/monero-dev/headers\n\n# find the header files (i.e., those with extension of *.h)\n# and copy them to /opt/monero-dev/headers.\n# but this time the structure of directories is important\n# so rsync is used to find and copy the headers files\nsudo rsync -zarv --include=\"*/\" --include=\"*.h\" --exclude=\"*\" --prune-empty-dirs ./ /opt/monero-dev/headers\n```\n\nThis should results in the following file structure:\n\n```bash\n# ... only part shown to save some space\n├── src\n│   ├── blockchain_db\n│   │   ├── berkeleydb\n│   │   ├── blockchain_db.h\n│   │   ├── db_types.h\n│   │   └── lmdb\n│   ├── blockchain_utilities\n│   │   ├── blockchain_utilities.h\n│   │   ├── blocksdat_file.h\n│   │   ├── bootstrap_file.h\n│   │   ├── bootstrap_serialization.h\n│   │   └── fake_core.h\n│   ├── blocks\n│   │   └── blocks.h\n```\n\n## Other examples\nOther examples can be found on  [github](https://github.com/moneroexamples?tab=repositories).\nPlease know that some of the examples/repositories are not\nfinished and may not work as intended.\n\n## How can you help?\n\nConstructive criticism, code and website edits are always good. They can be made through github.\n\nSome Monero are also welcome:\n```\n48daf1rG3hE1Txapcsxh6WXNe9MLNKtu7W7tKTivtSoVLHErYzvdcpea2nSTgGkz66RFP4GKVAsTV14v6G3oddBTHfxP6tU\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoneroexamples%2Fcompile-monero-09-on-arch-linux","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoneroexamples%2Fcompile-monero-09-on-arch-linux","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoneroexamples%2Fcompile-monero-09-on-arch-linux/lists"}