<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-Hans-CN">
	<id>https://wiki.linuxsa.org/index.php?action=history&amp;feed=atom&amp;title=Centos7%E4%B8%80%E7%99%BB%E9%99%86%E5%B0%B1%E4%BC%9A%E5%88%9B%E5%BB%BA%E4%B8%80%E4%B8%AA%E5%8F%AB%E5%81%9Aperl5%E7%9A%84%E7%9B%AE%E5%BD%95</id>
	<title>Centos7一登陆就会创建一个叫做perl5的目录 - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.linuxsa.org/index.php?action=history&amp;feed=atom&amp;title=Centos7%E4%B8%80%E7%99%BB%E9%99%86%E5%B0%B1%E4%BC%9A%E5%88%9B%E5%BB%BA%E4%B8%80%E4%B8%AA%E5%8F%AB%E5%81%9Aperl5%E7%9A%84%E7%9B%AE%E5%BD%95"/>
	<link rel="alternate" type="text/html" href="https://wiki.linuxsa.org/index.php?title=Centos7%E4%B8%80%E7%99%BB%E9%99%86%E5%B0%B1%E4%BC%9A%E5%88%9B%E5%BB%BA%E4%B8%80%E4%B8%AA%E5%8F%AB%E5%81%9Aperl5%E7%9A%84%E7%9B%AE%E5%BD%95&amp;action=history"/>
	<updated>2026-04-19T08:58:56Z</updated>
	<subtitle>本wiki上该页面的版本历史</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>https://wiki.linuxsa.org/index.php?title=Centos7%E4%B8%80%E7%99%BB%E9%99%86%E5%B0%B1%E4%BC%9A%E5%88%9B%E5%BB%BA%E4%B8%80%E4%B8%AA%E5%8F%AB%E5%81%9Aperl5%E7%9A%84%E7%9B%AE%E5%BD%95&amp;diff=215&amp;oldid=prev</id>
		<title>Evan：​导入1个版本</title>
		<link rel="alternate" type="text/html" href="https://wiki.linuxsa.org/index.php?title=Centos7%E4%B8%80%E7%99%BB%E9%99%86%E5%B0%B1%E4%BC%9A%E5%88%9B%E5%BB%BA%E4%B8%80%E4%B8%AA%E5%8F%AB%E5%81%9Aperl5%E7%9A%84%E7%9B%AE%E5%BD%95&amp;diff=215&amp;oldid=prev"/>
		<updated>2019-10-14T13:48:45Z</updated>

		<summary type="html">&lt;p&gt;导入1个版本&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=Question=&lt;br /&gt;
centos7一登陆就会创建一个叫做perl5的目录&lt;br /&gt;
&lt;br /&gt;
=Solve=&lt;br /&gt;
&lt;br /&gt;
只需要将/etc/profile.d/perl-homedir.sh文件中的PERL_HOMEDIR=1改为PERL_HOMEDIR=0即可。&lt;br /&gt;
&lt;br /&gt;
原因是perl会默认为每个用户加载local::lib，如果你不需要则无需加载。而用户登陆时会执行/etc/profile文件，此文件又会执行/etc/profile.d/*.s&lt;br /&gt;
&lt;br /&gt;
=see also=&lt;br /&gt;
&lt;br /&gt;
以 Attempting to create directory 为关键字在 google 搜索 以下是 解决方法链接&lt;br /&gt;
http://notes.taxkiz.com/2015/12/04/fixed-attempting-to-create-directory-root-perl5-on-centos-7/&lt;br /&gt;
&lt;br /&gt;
http://centos.1050465.n5.nabble.com/CentOS-attempting-to-create-directory-root-perl5-td5728398.html&lt;br /&gt;
&lt;br /&gt;
[[category:ops]] [[category:linux]]&lt;/div&gt;</summary>
		<author><name>Evan</name></author>
	</entry>
</feed>