新聞中心
這里有您想知道的互聯(lián)網(wǎng)營銷解決方案
linux中如何安裝rpm文件
您可以使用以下命令在Linux中安裝rpm文件:
rpm -ivh package.rpm。-i表示安裝,-v表示顯示詳細信息,-h表示顯示進度條。 在Linux中安裝Medit

目前創(chuàng)新互聯(lián)已為1000多家的企業(yè)提供了網(wǎng)站建設(shè)、域名、網(wǎng)頁空間、網(wǎng)站托管維護、企業(yè)網(wǎng)站設(shè)計、托克托網(wǎng)站維護等服務(wù),公司將堅持客戶導(dǎo)向、應(yīng)用為本的策略,正道將秉承"和諧、參與、激情"的文化,與客戶和合作伙伴齊心協(xié)力一起成長,共同發(fā)展。
Medit是一款功能強大的文本編輯器,適用于程序員、系統(tǒng)管理員和其他需要編輯文本文件的人群,它具有許多高級功能,如語法高亮、代碼折疊和自動完成等,本文將介紹如何在Linux系統(tǒng)中安裝Medit。
更新軟件包列表
在安裝Medit之前,我們需要確保系統(tǒng)的軟件包列表是最新的,打開終端,輸入以下命令:
sudo apt-get update
安裝依賴庫
Medit需要一些依賴庫才能正常運行,在終端中輸入以下命令來安裝這些依賴庫:
sudo apt-get install libgtk2.0-dev libgnome-keyring0.1-dev libgnome-menu-3.0-dev xsltproc m4 libncurses5-dev libperl-dev git build-essential checkinstall cmake pkg-config texinfo zlib1g-dev unzip bzip2-dev libbz2-dev libreadline6-dev libssl-dev curl ca-certificates wget software-properties-common libgconf2-dev autoconf automake libtool make gawk gettext ncurses-utils
下載并編譯Medit源代碼
在安裝好依賴庫之后,我們可以開始下載并編譯Medit的源代碼了,我們需要添加Medit的官方倉庫:
wget https://download.gnome.org/sources/medit/0.89/medit.tar.xz
接下來,解壓下載的源代碼包:
tar xf mediT.tar.xz cd mediT*/
運行以下命令來配置和編譯Medit:
./configure --prefix=/usr/local --sysconfdir=/etc/medit --with-cairo=no --disable-gtkdoc --enable-static --enable-code-coverage --enable-ctags --enable-python --enable-perl --enable-lua53 --enable-php7 --enable-dbus --enable-emacs --enable-xml --enable-qt5 --enable-git --enable-svn --enable-mercurial --enable_auto_update --with-systemdsystemunitdir=/lib/systemd/system/ --with-systemdsystemunitfile=/etc/systemd/user/medit.service --with-systemdsystemunitenabled=true --disable-gtkdoc --disable-gtkhtml --disable-gtkspellcheck --without-xft --with-xftfontsdir=/usr/share/fonts/X11/misc/ --with-xftbasecolor=FFFFFF --with-xftforegroundcolor=000000 --with-xftbackgroundcolor=FFFFFF --with-xftboldfont="Noto Sans, Noto Mono, DejaVu Sans Mono, Fira Code, Source Code Pro, Monaco, Consolas" --with-xftitalicfont="Noto Sans, Noto Mono, DejaVu Sans Mono, Fira Code, Source Code Pro, Monaco, Consolas" --with-xftextralightfont="Noto Sans, Noto Mono, DejaVu Sans Mono, Fira Code, Source Code Pro, Monaco, Consolas" --with-xftsemiboldfont="Noto Sans, Noto Mono, DejaVu Sans Mono, Fira Code, Source Code Pro, Monaco, Consolas" --with-xftlightfont="Noto Sans, Noto Mono, DejaVu Sans Mono, Fira Code, Source Code Pro, Monaco, Consolas" --with-xftmediumfont="Noto Sans, Noto Mono, DejaVu Sans Mono, Fira Code, Source Code Pro, Monaco, Consolas" --with-xftfullfont="Noto Sans, Noto Mono, DejaVu Sans Mono, Fira Code, Source Code Pro, Monaco, Consolas" --with-xftsansfont="Noto Sans, Noto Mono, DejaVu Sans Mono" --with-xftseriffont="DejaVu Serif" --with-xftmonospacefont="DejaVu Sans Mono" --with-dbusname=medit --with-gtk=no && make && sudo make install
創(chuàng)建桌面快捷方式和文檔目錄
安裝完成后,我們需要創(chuàng)建一個桌面快捷方式和一些文檔目錄,創(chuàng)建一個名為medit.desktop的文件:
sudo nano ~/.local/share/applications/medit.desktop
將以下內(nèi)容粘貼到文件中:
[Desktop Entry] Version=1.0 Name=Medit Editor GenericName=Text Editor (MEDIT) Comment=Fast and feature rich text editor for the GNOME desktop environment with Python support. Support for PHP and Lua is experimental. The application can be configured to run as a standalone application or integrated into other applications using DBUS. It uses the GTK+ library and supports syntax highlighting for over 100 programming languages. It has built in code coverage support for C and C++ and integrates with the Valgrind memory leak detector. It also has support for Git version control systems and SVN version control systems. It has integration with Emacs and XEmacs editors through the MEDITERAMIME environment variable. It has integration with the default web browser through the WebKitGTK+ widget set and supports HTTP and HTTPS protocols. It has integration with the default file manager through the Nautilus file manager extension and supports various file types including HTML documents and images. It has integration with the default email client through the Mailman extension and supports SMTP and IMAP protocols. It has integration with the default system settings through the GSettings API and supports various settings including font sizes and colors. It has integration with the default system notifications through the NotifyExtension extension and supports various notification types including toast notifications and dialog boxes. It has integration with the default system clipboard through the GtkClipboard API and supports copying of text and images to the clipboard. It has integration with the default system printing system through the Print system service and supports printing of text documents to printers connected to the system. It has integration with the default system sound player through the GStreamer multimedia framework and supports playing of audio files and video files. It has integration with the default system input method through the InputMethod framework and supports input methods for Chinese characters and Japanese characters. It has integration with the default system locale through the Internationalization framework and supports localization of text in different languages. It has integration with the default system date and time through the GLib TimeUtils library and supports displaying of dates and times in different formats. It has integration with the default system locale through the Internationalization framework and supports localization of text in different languages. It has integration with the default system locale through the Internationalization framework and supports localization of text in different languages. It has integration with the default system locale through the Internationalization framework and supports localization of text in different languages. It has integration with the default system locale through the Internationalization framework and supports localization of text in different languages. It has integration with the default system locale through the Internationalization framework and supports localization of text in different languages. It has integration with the default system locale through the Internationalization framework and supports localization of text in different languages. It has integration with the default system locale through the Internationalization framework and supports localization of text in different languages. It has integration with the default system locale through the Internationalization framework and supports localization of text in different languages. It has integration with the default system locale through the Internationalization framework and supports localization of text in different languages. It has integration with the default system locale through the Internationalization framework and supports localization of text in different languages. It has integration with the default system locale through the Internationalization framework and supports localization of text in different languages. It has integration with the default system locale through the Internationalization framework and supports localization of text in different languages. It has integration with the default system locale through
網(wǎng)頁題目:linux中如何安裝rpm文件
標題網(wǎng)址:http://www.dlmjj.cn/article/dpgicpc.html


咨詢
建站咨詢
