Installing programs into arbitrary location in Unix/ Linux systems

After you compiled and built your code, you should install it by calling sudo install to put headers and shared libraries into /usr/include/ and /usr/lib/ and configuration files into /usr/local and /usr/share

usually, I don’t like to touch my system binaries and I prefer to install my compiled code into my home directory so I can safely delete them anytime. If you using CMake use the following parameters to install everything in “/home/<user_name>/usr” instead of “/usr

if you are just using make, use the following:

 

1
Leave a Reply

avatar
1 Comment threads
0 Thread replies
0 Followers
 
Most reacted comment
Hottest comment thread
0 Comment authors
How to find CMake from arbitrary installed locations - Tutorials on Robotics for ROS developers Recent comment authors
  Subscribe  
newest oldest most voted
Notify of
trackback

[…] my other tutorial, I showed you how to install your code in an arbitrary location in Unix/ Linux systems. In this […]