Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the use of the prefix command in linux

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces what is the use of the prefix command in linux. It is very detailed and has a certain reference value. Friends who are interested must finish it!

Concept:

The installation of source code generally consists of three steps: configure, make, and make install.

Configure is an executable script that has many options. Use the command. / configure-- help to output a detailed list of options under the source path to be installed. Where the-prefix option is the path to configure the installation.

Action 1:

If you do not configure this option, the executable files are placed in / usr/local/bin by default, the library files are placed in / usr/local/lib by default, the configuration files are placed in / usr/local/etc by default, and other resource files are placed in / usr/local/share, which is messy.

If you configure-prefix, such as:

. / configure-- prefix=/usr/lcoal/test

You can put all the resource files in the / user/local/test path without clutter.

Action 2:

When an installed software is no longer needed, simply delete the installation directory and uninstall the software cleanly; migrate the software by simply copying the entire directory to another machine (the same operating system)

Of course, if you uninstall the program, you can also use make uninstall once in the original make directory, but only if the make file has specified uninstall.

The above is all the contents of linux-what is the use of the prefix command, thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report