Arch Install Issues

286 views
Skip to first unread message

Johny Why

unread,
Apr 20, 2023, 11:15:30 AM4/20/23
to ns-3-users
Hello, 

i'm attempting to install ns3 on arch linux. 

The following command gave errors:

$ sudo pacman -Syu --noconfirm g++ cmake ninja-build ccache python3 python3-dev gsl-bin libgsl-dev libgsl27 libboost-all-dev libgtk-3-dev libfl-dev libxml2 libxml2-dev libopenmpi-dev openmpi-bin openmpi-common openmpi-doc libsqlite3-dev sqlite3 libeigen3-dev qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools ssh git
[sudo] password for boom:
:: Synchronizing package databases...
 core downloading...
 extra downloading...
 community downloading...
error: target not found: g++
error: target not found: ninja-build
error: target not found: python3-dev
error: target not found: gsl-bin
error: target not found: libgsl-dev
error: target not found: libgsl27
error: target not found: libboost-all-dev
error: target not found: libgtk-3-dev
error: target not found: libfl-dev
warning: libxml2-2.10.3-2 is up to date -- reinstalling
error: target not found: libxml2-dev
error: target not found: libopenmpi-dev
error: target not found: openmpi-bin
error: target not found: openmpi-common
error: target not found: openmpi-doc
error: target not found: libsqlite3-dev
warning: sqlite-3.41.2-1 is up to date -- reinstalling
error: target not found: libeigen3-dev
error: target not found: qtbase5-dev
error: target not found: qtchooser
error: target not found: qt5-qmake
error: target not found: qtbase5-dev-tools
error: target not found: ssh
warning: git-2.40.0-1 is up to date -- reinstalling

------------
i googled the "not found" items. This is what i found.

g++ : part of base-devel
ninja-build : install with ninja
python3-dev : install with python3
needed?  cmake gcc
https://unix.stackexchange.com/questions/499786/ways-to-install-python3-dev-or-python3-devel-on-arch-linux
gsl-bin : install with gsl
needed?  cfitsio wcslib
libgsl27 : cannot find
libboost-all-dev : "The default CI (Arch Linux) pacman commands are in utils/tests/gitlab-ci.yml" ??
https://www.nsnam.org/docs/release/3.38/installation/singlehtml/index.html#document-system
libgtk-3-dev : You have to enable GTK_DEBUG to interactive ??
https://www.reddit.com/r/xfce/comments/w7ffaz/cant_find_gtk_inspector_in_pacman/
libfl-dev : cannot find
libxml2-dev : cannot find
libopenmpi-dev : cannot find
openmpi-bin : cannot find
openmpi-common : cannot find
openmpi-doc : cannot find
libsqlite3-dev : install with sqlite
https://tranalyzer.com/tutorial/db#dependencies
libeigen3-dev : install with eigen3
https://cran.r-project.org/web/packages/rSPDE/vignettes/build_source.html
qtbase5-dev :
?? libxcb xcb-proto xcb-util xcb-util-image xcb-util-wm libxi
https://wiki.qt.io/Building_Qt_5_from_Git
?? qt5-base libdbusmenu-qt5 qt5-tools qt5-x11extras
https://github.com/ckb-next/ckb-next/wiki/Linux-Installation
qtchooser : install from AUR
https://aur.archlinux.org/packages/qtchooser
qt5-qmake : install with qt5-declarative
https://gitlab.com/parallel-launcher/parallel-launcher
qtbase5-dev-tools : cannot find
ssh : complex manual process?
https://www.atlantic.net/dedicated-server-hosting/how-to-setup-ssh-key-based-authentication-on-arch-linux/


can someone who knows what they're doing help out?



Gabriel Ferreira

unread,
Apr 20, 2023, 7:11:38 PM4/20/23
to ns-3-users
Your package names look like Debian/Ubuntu ones. 
Arch has a completely different naming scheme. 
You can find some of the equivalent packages in out gitlab-ci files. 

You can search for pacman packages with 

pacman -Ss package

Then install with

pacman -S full_package_name

The Syu part fetches a fresh package database (-Sy is equivalent to apt update), 
and upgrades existing packets (-Su is equivalent to apt upgrade). 

johny why

unread,
Apr 20, 2023, 7:19:38 PM4/20/23
to ns-3-...@googlegroups.com
Hello, as I posted, I did research the Arch names. Please see my post. 
Thx


--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to a topic in the Google Groups "ns-3-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ns-3-users/6aYPHlKsXVI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ns-3-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ns-3-users/33f6fc08-9255-458e-a3b1-8da6f7f87501n%40googlegroups.com.

Tommaso Pecorella

unread,
Apr 21, 2023, 6:38:48 PM4/21/23
to ns-3-users
@johnywhy: I can't stress how disturbing is your reply.

Gabriel did point out that ArchLinux packages are named differently than Ubuntu ones, and you did use the Ubuntu ones without any doubt.
Replying "I did research the Arch names. Please see my post." means that you didn't bother reading Gabriel's post, or you didn't understand it. Either way it is unsettling, at best. At worst it is insulting.

NOW, I could easily point out that the correct set of packages is "pacman -Syu --noconfirm base-devel ninja cmake python ccache gsl gtk3 boost openmpi openssh" (plus others if you want to build the documentation, but you could have found it yourself if you'd had read Gabriel's post, but I won't, because Gabriel already pointed you to the right file.

I could easily point out also that some of the Ubuntu packages that you did try to install are optional, like explained here: https://www.nsnam.org/docs/installation/html/linux.html, but I won't. You didn't read the file Gabriel did point you to, I doubt you'll read the documentation.

The thing I'll do is to give you a warm suggestion: do not upset the people that help others on a volunteer basis. 

johny why

unread,
Apr 21, 2023, 9:01:33 PM4/21/23
to ns-3-...@googlegroups.com
Hello, there may have been a misunderstanding. My apologies if the misunderstanding was mine. 


Gabriel did point out that ArchLinux packages are named differently than Ubuntu ones, and you did use the Ubuntu ones without any doubt.

Yes, i know that i used the Ubuntu names. I tried to explain that i understood that was the problem, and that's why my build failed. 

I attempted to research the Arch names AFTER my failed build. I posted above some of the Arch names that i found, and others which i couldn't find. 

Sorry if i was unclear. 


some of the Ubuntu packages that you did try to install are optional

I am too ignorant to know which of the optional packages would be need for my application. 


Thank you very much for sharing the Arch script at this link. I guess that's a YAML script? Do you recommend that i execute the entire script?

Thx

Tommaso Pecorella

unread,
Apr 22, 2023, 5:38:22 AM4/22/23
to ns-3-users
Mmm.... perhaps we're caught in a lost-in-translation effect here. Suggestion: explain yourself better next time.

You don't know which packages are needed for your application... solution: start small, add what you need when you discover you need it.
For most cases, I recommend the following:
  • ccache (decreases dramatically compilation time after the 1st one)
  • clang-format (helps fixing formatting mistakes)
  • gdb (you WILL have a bug, and you WILL need to debug it)
  • sqlite (you probably want to dump data into a database)
  • gsl, boost (not mandatory, but increases the speed of some operations)
  • libxml2 (to read and write config files in.a structured way)
  • Wireshark (to read pcap files, but it's not needed for compiling and using ns-3)
everything else is specific to some models. If you need these models you can add libraries later, reconfigure ns-3, and rebuild it.If the libraries are not found, ns-3 will not build the model.

Using the full script in the yaml file is also possible but... mind that these scripts are focused on testing, so they contain the libraries needed for testing.
As an example, we include gtk3 openmpi, and openssh because we test MPI, but this feature is important only in very specific cases (read the MPI documentation).
Reply all
Reply to author
Forward
0 new messages