我可以从不同位置执行 sudo make install 两次吗?

发布于 2024-09-15 03:42:33 字数 373 浏览 3 评论 0原文

我用的是Mac,雪豹。

在准备安装 PIL 时,我需要安装 libjpeg。 所以,从我的主目录中我做了:

tar zxvf jpegsrc.v6b.tar.gz
cd jpeg-6b
cp /usr/share/libtool/config/config.sub .
cp /usr/share/libtool/config/config.guess .
./configure --enable-shared --enable-static
make
sudo make install

但实际上我后来读到,最好从 src 目录中将所有源代码整齐地放在一起。 我可以从 /usr/local/src 重新执行上述操作吗?否则这会弄乱我的系统吗?

I am on Mac, Snow Lepard.

In preparation to install PIL I need to install libjpeg.
So, from my home directory I did:

tar zxvf jpegsrc.v6b.tar.gz
cd jpeg-6b
cp /usr/share/libtool/config/config.sub .
cp /usr/share/libtool/config/config.guess .
./configure --enable-shared --enable-static
make
sudo make install

But actually I read later it would have been better to this from src directory to keep all source together neatly.
Can I just do the above over from /usr/local/src or will that mess up my system?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

素手挽清风 2024-09-22 03:42:36

这个问题实际上与 Python 没有太大关系......;-)。无论如何,是的,在不同的目录中重复相同的步骤应该“覆盖”您刚刚执行的安装。

The question doesn't really have much to do with Python...;-). Anyway, yes, repeating the same steps in a different directory should "overwrite" the installation you just performed.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文