Ubuntu 环境变量配置文件介绍

news/2025/2/22 22:04:47

QMAKESPEC has not been set, so configuration cannot be deduced.

     deduce from

  • 推断;从…得出结论

Error processing project file: /home/qust/qt/time/time.pro

qust@qust-K42JZ:~/qt/time$ make

在Ubuntu中有如下几个文件可以设置环境变量:


/etc/profile:在登录时,操作系统定制用户环境时使用的第一个文件,此文件为系统的每个用户设置环境信息,当用户第一次登录时,该文件被执行。

/etc/environment:在登录时操作系统使用的第二个文件,系统在读取你自己的profile前,设置环境文件的环境变量。

~/.profile:在登录时用到的第三个文件是.profile文件,每个用户都可使用该文件输入专用于自己使用的shell信息,当用户登录时,该文件仅仅执行一次!默认情况下,他设置一些环境变量,执行用户的.bashrc文件。

/etc/bashrc:为每一个运行bash shell的用户执行此文件.当bash shell被打开时,该文件被读取.

~/.bashrc:该文件包含专用于你的bash shellbash信息,当登录时以及每次打开新的shell时,该该文件被读取。

  

/etc/environment是设置整个系统的环境,而/etc/profile是设置所有用户的环境,前者与登录用户无关,后者与登录用户有关。

系统应用程序的执行与用户环境可以是无关的,但与系统环境是相关的,所以当你登录时,你看到的提示信息,象日期、时间信息的显示格式与系统环境的LANG是相关的,缺省LANG=en_US,如果系统环境LANG=zh_CN,则提示信息是中文的,否则是英文的。


rc (像是 ".cshrc" 或 "/etc/rc" 中的 rc 这两个字母) = "RunCom"

"rc" 是取自 "runcom", 来自麻省理工学院在 1965 年发展的 CTSS系统。相关文献曾记载这一段话: '具有从档案中取出一系列命令来执
行的功能;这称为 "run commands" 又称为 "runcom",而这种档案又称为一个 runcom (a runcom)。'

Brian Kernighan 与 Dennis Ritchie 告诉 Vicki Brown 说: "rc" 也是Plan 9 作业系统 shell 的名字。


原文地址:http://www.5dlinux.com/article/7/2009/linux_35311.html



http://www.niftyadmin.cn/n/1736317.html

相关文章

Nand 的几个名词:oob,bbt,ecc

例如Samsung K9F1208U0B,数据存储容量为64MB,采用块页式存储管理。8个I/O 引脚充当数据、地址、命令的复用端口。 芯片内部存储布局及存储操作特点: 一片Nand flash为一个设备(device), 其数据存储分层为: 1 (Device) 4096 (Blocks) 1 (Block) - 32 (Pages/Row…

QMessageBox中定位哪个按钮被按下

例: int retQMessageBox::information(this, tr("自定义模式"), tr("立刻切换到自定义模式: ")ui->textEdit->toPlainText(), QMessageBox::Yes | QMessageBox::No, QMessageBox::Yes);if(retQMessageBox::Yes){ui->…

错误:Warning: File `../table/table.pro' has modification time 3.9e+08 s in the future

错误:Warning: File ../table/table.pro has modification time 3.9e08 s in the future 这个错误多半是因为改变了系统的时间,造成文件在将来被改写,,把时间改回去,把工程里面生成的中间文件例如:table.pro.user,Mak…

清空Qtablewiget 表格的内容

今天用到了Qtablewiget 清空表格内容; 其中: void QTableWidget::clear () [slot]//清空掉表格内所有内容,包括标题头Removes all items in the view. This will also remove all selections. The table dimensions stay the same.void QTableWidget::…

十说电容经典

话说电容之一:电容的作用 作为无源元件之一的电容,其作用不外乎以下几种:1、应用于电源电路,实现旁路、去藕、滤波和储能的作用。下面分类详述之:1)旁路旁路电容是为本地器件提供能量的储能器件&#xff0c…

不同窗口之间使用信号槽

不同窗口之间的信号槽&#xff0c;由一个窗口emit signal 然后在另一个窗口中用connect 响应。 editnetconfig.h #ifndef EDITNETCONFIG_H #define EDITNETCONFIG_H#include <QDialog>namespace Ui { class EditNetConfig; }class EditNetConfig : public QDialog {Q_O…

QT 获得tableWidget中QComboBox的内容

QWidget * QTableWidget::cellWidget ( int row, int column ) constReturns the widget displayed in the cell in the given row and column.QWidget * widgetui->tableWidget->cellWidget(i,0);//获得widgetQComboBox *combox(QComboBox*)widget;//强制转化为QComboBo…

FT5406触摸屏驱动

1.首先&#xff0c;分析下FT5406的基本电路接口 [html] view plaincopyExternal Interface I2C/SPI: an interface for data exchange with host INT: an interrupt signal to inform the host processor that touch data is ready for read WAKE: an interru…