问题标签 [gentoo]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
glibc - 如何在 Gentoo 上安装 glibc 2.3.2?
我写了一个应用程序,我需要在 Gentoo 上执行它,但是当我尝试运行它时,我收到以下消息:
/lib/libc.so.6:未找到版本“GLIBC_2.3.4”(/usr/local/myapp/lib/myapplib.so.1 需要)
这个 gentoo 中当前的 GLIBC 版本是 2.3.2。
我无法更新这个 glibc,因为我没有权限,所以我需要将我的 glibc '降级'到相同的版本(2.3.2)......我该怎么做?
tks,
ubuntu - 在 Gentoo 覆盖中带有 Ubuntu 补丁的 Freetype
Gentoo 有 bobrik-cleartype 覆盖,其中包含 freetype、libXft 等,带有来自 Ubuntu 的补丁包(添加 USE +ubuntu)。然后它被devnull覆盖吸收了。
现在 devnull 已经死了,我想知道带有这些补丁的最新包是否可以在其他覆盖中使用,有人在使用它们吗?
python - Python time.time() -> IOError
我刚刚安装了一个基本的 gentoo stage 3,当我尝试调用 time.time() 时出现以下错误:
我发现这是因为当我尝试运行emerge时,我得到:
这是一个自定义内核,我只是确保我在 RTC 支持中编译,但仍然没有运气。关于为什么会发生这种情况的任何想法?
php - apc_store 在请求之间不起作用
在一个请求内完成这项工作。
现在,如果我尝试执行var_dump(apc_fetch('foo'));
另一个请求,它会打印:
有什么帮助吗?
我正在使用 PHP 5.2、APC-3.1.9 的 gentoo
以下是 phpinfo() 对 APC 的了解:
如果您需要其他信息,请告诉我
这是我的安装方式:https ://serverfault.com/questions/274261/failed-installing-apc
我注意到一件事:在 phpinfo' 配置命令中我没有找到 apc
'./configure' '--disable-cli' '--disable-discard-path' '--disable-force-cgi-redirect' '--prefix=/usr/local/php5' '--with-config -file-path=/usr/local/lib/php5' '--with-pear=/usr/share/php5' '--enable-exif' '--enable-ftp' '--enable-bcmath' ' --enable-calendar' '--with-gd' '--enable-gd-native-ttf' '--with-freetype-dir' '--with-gettext' '--with-zlib-dir' ' --with-imap' '--with-imap-ssl' '--with-png-dir=/usr' '--with-jpeg-dir=/usr' '--with-xpm-dir=/usr ' '--with-openssl' '--with-kerberos' '--enable-sysvsem' '--enable-sysvshm' '--with-mcrypt' '--with-iconv' '--enable-mbstring=全部' '--enable-mbregex' '--with-mysql=/usr' '--with-mysqli' '--with-curl' '--with-xsl'
lua - lighttpd 作为运行 lua 脚本的麻烦
我一直在尝试在 lighttpd 中运行 lua 脚本。我正在运行 gentoo,并安装了带有 lua 使用标志的 lighttpd。mod_magnet.so 是它应该在的地方。当我尝试启动服务器时,出现此错误:
这是我的配置文件:
如果我注释掉“mod_magnet”,我仍然会得到同样的错误。如果我注释掉该行
问题消失了,但当然我不能使用我的脚本进行测试,我注释掉我的脚本只是为了降低复杂性。我的猜测是问题是 mod_magnet 没有加载。有任何想法吗?
linux - 我怎样才能沙箱文件系统活动,特别是写入?
Gentoo 在 portage 中有一个特性,可以防止和记录构建和打包目录之外的写入。
Checkinstall能够监控写入,并在完成后打包所有生成的文件。
Autotools 有一个DESTDIR
宏,可以让您通常将大部分文件系统活动定向到备用位置。
- 我自己如何使用 Gentoo 沙盒方法的安全性来做到这一点?
- 我可以使用 SELinux、rlimit 或其他一些资源限制 API 吗?
- C、Python 有哪些 API 可用?
更新0
- 使用的机制不需要 root 权限或任何涉及/持久的系统修改。这排除了创建用户和使用
chroot()
. - 请链接到您提到的 API 的文档,由于某种原因,它们非常难以找到。
更新1
- 这是为了防止意外。我不担心恶意代码,只担心写得不好的品种。
python - python:编写 XML 需要多少写访问权限
我正在编写一个将数据写入 XML 文件的 python 模块。处理写入的代码是:
最终的 output.xml 在 Gentoo OS 上的大小为 422 字节。给定 Gentoo 的默认块大小是 1024 字节。我想知道那段代码会生成多少次磁盘写入(因为它取决于文件操作)。
谢谢!
python - 如何使用内核名称(不是当前内核)获取内核版本
只是我想清理旧内核的模块。它是“uname -r”,但我需要使用 Python 获取所有内核的此类信息(我已经知道它们的名称并且可以清理内核文件、initramfs 和 System.map)。如果可能的话……
谢谢你。
python - how to add Tkinter support to python2 on my gentoo?
The default python version on my gentoo is python2, and the default python installed on gentoo has no Tkinter support. After I added the following line to /etc/portage/package.use
then emerge python, it only shows: [ebuild R ] dev-lang/python-3.1.3-r1 USE="examples gdbm ipv6 ncurses readline sqlite ssl threads tk (wide-unicode) xml -build -doc -wininst" 0 kB
There is no python2!....
How to add Tkinter support to python2?
linux - How to write a Gentoo ebuild file , with LINGUAS support
I wanted to write a ebuild for some binary package , it contains a folder for different languages , its structure is:
ls /path/po:
I think it's easy to do it , but the document provided by Gentoo is really limited , how can i filter the unnecessary language files ? I shouldn't be copying all those to /usr/share/locale.
==========================================================
@Updates:
I discovered a simple method , which examines ${LANGUAS} variable , like the following code:
Just wondering if it's official approach.