简体   繁体   English

openSUSE 的构建必备

[英]Build-essential for openSUSE

I am a newbie on openSUSE.我是 openSUSE 的新手。 I needed to get build-essential for the system but could not get it using sudo apt-get install build-essential or even by using sudo apt-get update and then following it with the previous code.我需要为系统获取 build-essential,但无法使用sudo apt-get install build-essential或什至使用sudo apt-get update然后使用以前的代码来sudo apt-get update它。 I found a way to install most packages of build essential through sudo zypper install -t pattern devel_basis .我找到了一种通过sudo zypper install -t pattern devel_basis安装大多数 build sudo zypper install -t pattern devel_basis But however, I am not able to obtain libframe package !!但是,我无法获得 libframe 包!! I can't directly download it because mine is an account on the office computer and I don't have the root access.我不能直接下载,因为我的是办公室电脑上的账户,我没有root权限。 I am also attaching the screenshot of my terminal.. The error is towards the end.我还附上了我的终端的屏幕截图.. 错误接近尾声。

Screenshot截图

zypper info -t pattern devel_basis to see what packages have the pattern zypper info -t pattern devel_basis查看哪些包有这个模式

zypper install -t pattern devel_basis to install these packages zypper install -t pattern devel_basis安装这些包

thanks to what-is-build-essentials-for-opensuse感谢what-is-build-essentials-for-opensuse

I'm not sure if this requires root login or just maybe sudo privileges.我不确定这是否需要 root 登录或只是sudo权限。 These can be granted by ur system administrator.这些可以由您的系统管理员授予。 You may just need to ask for them.您可能只需要要求他们。 You need to add the repository first before trying the zypper install The command is在尝试 zypper install 之前,您需要先添加存储库命令是

zypper ar -f URL alias zypper ar -f URL 别名

where哪里

ar is short form of addrepo command ar是 addrepo 命令的简写形式

-f instruction to zypper to add autorefresh flag to newly added repo -f指令 zypper 将自动刷新标志添加到新添加的存储库

URL is URL of the repo which you type in a browser to visit repo in this case ( itc ): http://download.opensuse.org/distribution/leap/42.2/repo/oss/ URL是您在浏览器中键入的存储库的 URL,在这种情况下( itc )访问存储库: http : //download.opensuse.org/distribution/leap/42.2/repo/oss/

alias is name that is easy to remember.别名是易于记忆的名称。 itc : openSUSE:Leap:42.2 itc : openSUSE:Leap:42.2

so...所以……

zypper ar -f http://download.opensuse.org/distribution/leap/42.2/repo/oss/ openSUSE:Leap:42.2

I had a similar problem with ubuntu/debian command.我对 ubuntu/debian 命令有类似的问题。

sudo apt-get build-essential libssl-devel sudo apt-get build-essential libssl-devel

it turns out in Suse build-essential and libssl-devel would be devel_basis and openssl-devel respectively.事实证明,在 Suse build-essentiallibssl -devel 中分别是devel_basisopenssl-devel to install I then searched on google for just openssl-devel (as it was all that I needed at that time), and followed the link from https://software.opensuse.org .要安装,我然后在 google 上搜索了openssl-devel (因为当时我只需要它),然后点击https://software.opensuse.org 中的链接。 Hope this helps希望这有帮助

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM