% ./ns3 install
Install the project...
-- Install configuration: "default"
CMake Error at cmake_install.cmake:41 (file):
file cannot create directory: /usr/local/lib/pkgconfig. Maybe need
administrative privileges.
make: *** [install] Error 1
Finished executing the following commands:
cd cmake-cache; /opt/homebrew/bin/cmake --build . -j 7 --target install ; cd ..
% sudo ./ns3 install
Password:
Traceback (most recent call last):
File "./ns3", line 1629, in <module>
main()
File "./ns3", line 1402, in main
refuse_run_as_root()
File "./ns3", line 1395, in refuse_run_as_root
raise Exception("Refusing to run as root. --enable-sudo will request your password when needed")
Exception: Refusing to run as root. --enable-sudo will request your password when needed
--
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 the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, 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/4b534bd2-28c0-4ac0-be31-c1045d011bc1n%40googlegroups.com.