我正在使用 Fedora 16 并且我已经按照以下说明成功地从源代码编译了 Chromium(我第一次从源代码编译了一些东西):
http://code.google.com/p/chromium/wiki/LinuxBuildInstructions
在过程结束时,一切正常。但是,经过多次尝试,我没有成功编译该程序的较新版本。我坚持使用版本 20.0.1100.0 custom (132047)。在重新构建之前,我按照步骤同步我的源。但是经过所有步骤,构建 132047 仍然是我所拥有的。
有人可以帮助我构建更新的版本并使用它们,因为我似乎在互联网上找不到任何东西。
谢谢!
I have a RHEL 6.4 VM provisioned by my company's internal KVM.
We are having some trouble using yum (Cannot retrieve repository metadata, which I've confirmed in this case is peculiar to my company's internal cloud), so I have to build Git from source.
Downloading the RPM file and issuing
sudo yum localinstall ....rpm
Run Code Online (Sandbox Code Playgroud)
Gives me the same Cannot retrieve repository metadata error.
Issuing
sudo rpm -ivh ....rpm
Run Code Online (Sandbox Code Playgroud)
Fails with an error: Failed dependencies and then lists all …
有一个source命令的描述:
source是一个 bash shell 内置命令,它在当前 shell 中执行作为参数传递的文件的内容。它有一个同义词.(句号)。
例如,为了进行实验,我想zsh在我的例子中从不同的 shell 导出一个变量(在 中运行命令bash):
$ zsh -c "export test=$(echo "hello world")"
$ echo $test
$
Run Code Online (Sandbox Code Playgroud)
它不起作用,因为该命令在zsh子 shell 中运行,并且不是直接在bash.
如果我以这种方式创建并获取脚本:
#!/home/linuxbrew/.linuxbrew/bin/zsh
export test=$(echo "hello world")
Run Code Online (Sandbox Code Playgroud)
$ chmod 777 test.zsh
$ source test.zsh
$ echo $test
hello world
Run Code Online (Sandbox Code Playgroud)
工作正常。
问题是如何在source不使用脚本的情况下执行命令,因为source只能使用文件运行?我想实现这样的目标:
source zsh -c "export test=$(echo "hello world")"
Run Code Online (Sandbox Code Playgroud)
如果不可能,请解释原因。
在查看某些源代码树时,有时我会遇到扩展名为“*.in”的文件,通常是属于 /etc 或 /usr/share 下某处的未编译文件。
例如,在openwsman源代码中,我可以看到文件:
etc/owsmangencert.sh.in
Run Code Online (Sandbox Code Playgroud)
按内容对应
/etc/openwsman/owsmangencert.sh
Run Code Online (Sandbox Code Playgroud)
从 RPM (RHEL7) 部署时,保存一些变量引用。
我假设在构建过程中使用这样的文件最终出现在提到的路径中。但为什么他们被命名originalname.in而不是originalname?像这样的文件在登陆之前通常会发生什么?
这些文件是如何命名的?有人能指出我正确的文件吗?
注意 Openwsman 也有 etc/owsmangencert.sh.cmake,情况类似。
I need a specific kernel version to compile it with some additional modules.
When I typing:
uname -r
Run Code Online (Sandbox Code Playgroud)
I get
3.8.0-29-generic
Run Code Online (Sandbox Code Playgroud)
I need this one.
uname -a
Linux "..." 3.8.0-29-generic #42~precise1-Ubuntu SMP Wed Aug 14 16:19:23 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
Run Code Online (Sandbox Code Playgroud)
Where can I find this version? Here https://www.kernel.org/ seems that there isn't..
Linux 内核源代码树是什么?它包含什么以及其目的是什么?
我正在尝试构建一个外部模块,我正在使用的教程说要确保内核源代码树可用。
如果可用,我在 Ubuntu 中哪里可以找到它?
这里有一个类似的问题:
但我没有看到我的问题的答案。
如果能澄清这一点就好了。
我正在阅读 bash 源代码,bash 的BNF 语法是:
<pipeline_command> ::= <pipeline>
| '!' <pipeline>
| <timespec> <pipeline>
| <timespec> '!' <pipeline>
| '!' <timespec> <pipeline>
<pipeline> ::=
<pipeline> '|' <newline_list> <pipeline>
| <command>
Run Code Online (Sandbox Code Playgroud)
这是否意味着!命令也是一种管道。
! ls作品?但是它与ls.
! time ls 也有效。
这与|管道完全不同。
如何!在bash中使用?是管道吗?
这是我的 sources.list 目前的样子:
deb http://ftp.us.debian.org/debian/ jessie main
deb-src http://ftp.us.debian.org/debian/ jessie main
deb http://security.debian.org/ jessie/updates main contrib
deb-src http://security.debian.org/ jessie/updates main contrib
# jessie-updates, previously known as 'volatile'
deb http://ftp.us.debian.org/debian/ jessie-updates main contrib
deb-src http://ftp.us.debian.org/debian/ jessie-updates main contrib
Run Code Online (Sandbox Code Playgroud)
如您所见,存储库是该US区域的镜像。如何自动将其更改为另一个存储库区域,而无需手动更改 sources.list?
我只知道如何删除旧AU存储库并手动将其更改为其他区域存储库,例如存储库或其他存储库。
我知道我们可以按照以下格式更改 Debian 使用的 repo 区域:
http://ftp.[Region].debian.org/debian/
Run Code Online (Sandbox Code Playgroud)
但是不遵循默认格式的存储库如何:kartolo.sby.datautama.net.id,这是来自 的存储库Indonesia?我如何将其更改为此处列表中的一个?
考虑一下这一点。IFS仅在执行时设置read。
IFS='' read -r REPLY
Run Code Online (Sandbox Code Playgroud)
但是,如果我对.(source)执行类似操作,即使在执行该代码行之后,变量也会被分配和更改。
PATH="/new_path:${PATH}" . script.sh
echo "$PATH" # Value changed
Run Code Online (Sandbox Code Playgroud)
为什么会出现这种情况呢?我认为.和 Bash 一样source,是一个类似于reador 的命令echo。有没有任何文档,例如2.14。特殊的内置实用程序,提到这种行为吗?
如何以符合 POSIX 的方式临时设置$PATH和.(源)文件?
source ×10
bash ×2
compiling ×2
ubuntu ×2
apt ×1
chrome ×1
command-line ×1
debian ×1
fedora ×1
git ×1
kernel ×1
linux ×1
linux-kernel ×1
netstat ×1
networking ×1
path ×1
pipe ×1
posix ×1
rhel ×1
shell ×1
shell-script ×1
source-code ×1
variable ×1
zsh ×1