在使用“yum”安裝“開發工具”時需要協助

在使用“yum”安裝“開發工具”時需要協助

我目前使用 Ubuntu 14.04 LTS 主要用於神經影像學用途。我需要安裝一個程式(請參閱:http://dti-tk.sourceforge.net/pmwiki/pmwiki.php?n=SourceCode.SourceCode)這要求我從 CentOS 安裝「開發工具」。我被引導至:https://support.eapps.com/index.php?/Knowledgebase/Article/View/438/55/user-guide---installing-the-centos-development-tools-gcc-flex-etc#installing-the -使用yum 的開發工具我按照頁面上的說明進行操作。

然而我發現當我進入

$ yum groupinstall "development tools"
There are no enabled repos.
Run "yum repolist all" to see the repos you have.
You can enable repos with yum-config-manager --enable <repo>

repolist: 0當我跑步時我得到了yum repolist all。當我嘗試使用yum-config-manager命令啟用存儲庫時,我得到You must be root to change the yum configuration.

我不確定此時我該做什麼?任何幫助將非常感激。

答案1

您不需要下載 CentOS 開發工具或yum.如果您查看指南,您將需要cvsccmake

要下載這些,請使用apt-get.見下文:

sudo apt-get update && sudo apt-get install cvs cmake-curses-gui

我透過搜尋儲存庫的快取找到了cvs和應用程式:ccmake

  1. sudo apt-get update取得儲存庫中應用程式的最新版本。如果您已經使用我上面提供的命令安裝了應用程序,則無需執行此操作。

  2. apt-cache search <package name>搜尋儲存庫清單中的儲存庫中可用的特定應用程式。

man apt-cache使用和查看更多內容man apt-get

相關內容