[問題] build-essential安裝

看板Linux作者 (DIS)時間11年前 (2013/06/28 17:05), 編輯推噓6(6048)
留言54則, 6人參與, 最新討論串1/1
我在灌build-eseential phenix@Dell:~$ sudo apt-get install build-essential正在讀取套件清單... 完成 正在重建相依關係 正在讀取狀態資料... 完成 build-essential 已經是最新版本了。 升級 0 個,新安裝 0 個,移除 0 個,有 115 個未被升級。 phenix@Dell:~$ $ aptitude search build-essential $: command not found So I don't know how to fix this problem... Corret one is below: phenix@phenix-Dell-System-Inspiron-N4110:~$ ptitude search build-essential 找不到 'ptitude' 這個命令, 您是指這命令嗎: 命令 'aptitude' 來自於套件 'aptitude' (main) ptitude: command not found -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.123.112.14

06/28 17:22, , 1F
多打了一個'$'
06/28 17:22, 1F

06/28 17:27, , 2F
XDD
06/28 17:27, 2F
"$" this is not I typed...XD

06/28 17:31, , 3F
原PO用複製的對吧,通常網路上的人會把command前面加上
06/28 17:31, 3F

06/28 17:31, , 4F
加上$或是#代表這是command
06/28 17:31, 4F
I only type sudo apt-get install build-essential phenix@Dell:~$ this part existed before I typed

06/28 17:39, , 5F
$ aptitude search build-essential
06/28 17:39, 5F

06/28 17:40, , 6F
第二個你鍵入有多一個$啊@_@
06/28 17:40, 6F
Oh! I know,I changed it now. And the result is on the end of the article.

06/28 17:53, , 7F
"$: command not found" 不正說明了你多打一個"$"嗎....
06/28 17:53, 7F

06/28 17:53, , 8F
在aptitude的命令那邊
06/28 17:53, 8F

06/28 17:53, , 9F
而且你已經灌好build-essential了呀
06/28 17:53, 9F
I think I didn't sucsees...

06/28 18:07, , 10F
你第二次少打了一個a "a"ptitude
06/28 18:07, 10F
phenix@Dell:~$ aptitude search build-essential 程式 'aptitude' 目前尚未安裝。 您可以由輸入以下內容安裝: sudo apt-get install aptitude If I installed the build-essential , why I can't find it? I want to find it in search your computer and online sources.

06/28 18:52, , 11F
.....you haven't install aptitude
06/28 18:52, 11F

06/28 18:52, , 12F
apt-cache search = aptitude search, try apt-cache one
06/28 18:52, 12F

06/28 18:53, , 13F
aptitude isn't installed in ubuntu by default
06/28 18:53, 13F

06/28 18:54, , 14F
read chinese instructions please, or LANG=C before doing
06/28 18:54, 14F

06/28 18:54, , 15F
these to get you english one.....
06/28 18:54, 15F

06/28 18:55, , 16F
"程式 'aptitude' 目前尚未安裝。 您可以由輸入以下內容安裝
06/28 18:55, 16F

06/28 18:55, , 17F
" meant you didn't install aptitude, not it can't find
06/28 18:55, 17F

06/28 18:55, , 18F
it.
06/28 18:55, 18F

06/28 18:56, , 19F
"build-essential 已經是最新版本了。" meant you have ins-
06/28 18:56, 19F

06/28 18:56, , 20F
talled the latest build-essential....
06/28 18:56, 20F

06/28 18:56, , 21F
if you want to perform an apt search with apt-get, go f-
06/28 18:56, 21F

06/28 18:57, , 22F
or "apt-cache search"
06/28 18:57, 22F

06/28 18:58, , 23F
if you prefer english instructions or you can't read ch-
06/28 18:58, 23F

06/28 18:59, , 24F
inese, do "phenix@Dell:~$ LANG=C" before executing other
06/28 18:59, 24F

06/28 18:59, , 25F
programs
06/28 18:59, 25F

06/28 19:00, , 26F
你是希望在哪裡找到build-essential... 他不是一個軟體啊 = =
06/28 19:00, 26F

06/28 19:02, , 27F
就像在Win中裝了.NET framework, 也不會有個叫做.net fw的東
06/28 19:02, 27F

06/28 19:02, , 28F
西給你看啊...
06/28 19:02, 28F

06/28 19:04, , 29F
嚴格來講他是一個軟體呀,而且apt-cache或aptitude確實找得
06/28 19:04, 29F

06/28 19:04, , 30F
到這個meta package
06/28 19:04, 30F

06/28 19:05, , 31F
*嚴格來講他是一個套件
06/28 19:05, 31F

06/28 19:05, , 32F
在win中裝了.net framework你也可以在控制台看到你有裝呀...
06/28 19:05, 32F

06/28 19:05, , 33F
這篇原po大概只是完全看不懂中文、不知道他沒有aptitude、不
06/28 19:05, 33F

06/28 19:06, , 34F
知道可以用apt-cache search...
06/28 19:06, 34F

06/28 19:07, , 35F
他不會看不懂吧... 可能只是想build中文輸入法? XD
06/28 19:07, 35F

06/28 19:09, , 36F
我也覺得他看起來不像看不懂中文呀,可是他的表現就是看不懂
06/28 19:09, 36F

06/28 19:10, , 37F
,不然apt-get和找不到aptitude的那個訊息寫那麼清楚...
06/28 19:10, 37F
哭哭...我看得懂中文啦!只是ubuntu介面不知道的中文輸入問題我還沒解決... 真是問題一大堆... 因為我今天第一次對著ubuntu打指令,我想說都按照網路上打的怎麼還會有問題??? 我不太明擺指令的意思 我以為aptitude告訴我build-essential還沒有安裝 原來build-essential不是一個軟體阿... 我以為是用來寫程式的軟體...

06/28 21:30, , 38F
你可以把 build-essential 想成依賴編譯工具的空套件
06/28 21:30, 38F

06/28 21:31, , 39F
雖然它本身不會裝什麼東西進去系統,但是可以用來圈選
06/28 21:31, 39F

06/28 21:31, , 40F
編譯環境需要的其他套件
06/28 21:31, 40F

06/28 21:51, , 41F
就像是你要辦公,總要桌子椅子跟幾支筆吧((最好還有冷氣
06/28 21:51, 41F

06/28 21:51, , 42F
build-essential就類似這樣
06/28 21:51, 42F
那我到底要怎麼寫程式呢? 還是跟以前工作站很像,就是我丟指令下去它可以直接執行,所以不用IDE了? 我有看到在UBUNTU底下打開我的CODE他會直接用記事本之類的打開 也許是用這個存成.cpp檔跟.h檔直接丟指令去跑? 那這樣就不能debug了? ※ 編輯: discipile 來自: 1.162.205.31 (06/30 12:23)

06/30 12:24, , 43F
IDE和記事本之類的有別的軟體你要自己裝呀=_=
06/30 12:24, 43F

06/30 12:25, , 44F
build-essential大致上是compiler和一些lib
06/30 12:25, 44F

06/30 14:12, , 45F
這.....觀念不清啊
06/30 14:12, 45F

06/30 14:12, , 46F
是說我覺得build-essential也算是軟體,更精準地說是
06/30 14:12, 46F

06/30 14:13, , 47F
很多軟體組成的軟體包吧
06/30 14:13, 47F

06/30 14:13, , 48F
呃.....忽略上面,我覺得我有點說錯@_@
06/30 14:13, 48F

06/30 16:51, , 49F
dpkg -L build-essential 就可以看到它實際裝了什麼
06/30 16:51, 49F

06/30 16:52, , 50F
build-essential 最重要的就是他的 dependencies XD
06/30 16:52, 50F

06/30 23:51, , 51F
為什麼寫程式一定要IDE 只要有complier就可以了吧
06/30 23:51, 51F
因為程式功力不夠高強,我需要IDE告訴我哪裡出錯了 ※ 編輯: discipile 來自: 1.162.194.23 (07/01 00:06)

07/01 08:51, , 52F
呃 ... compiler 也會告訴你哪裡出錯啊 XD
07/01 08:51, 52F
冏...compiler也會阿... 那我可以先試試看沒有裝的情況,不行再裝

07/01 10:53, , 53F
你那麼需要IDE就去裝IDE呀囧
07/01 10:53, 53F

07/01 11:48, , 54F
如果不嫌肥的話 Eclipse CDT 是不錯的環境
07/01 11:48, 54F
我給linux留了100G的空間...希望夠裝... ※ 編輯: discipile 來自: 192.192.154.41 (07/01 13:02)
文章代碼(AID): #1HpL7Ybh (Linux)