This question is based on the thread.
这个问题是基于线程的。
I downloaded the manuals as the file "v5.1 (Maria) TGZ". I moved the file to /usr/share/man/
. I could not access the manuals by
我将手册下载为文件“v5.1(Maria)TGZ”。我将文件移动到/ usr / share / man /。我无法访问手册
man mysqlbug
The .tar.gz -file has these files which do not include README
.tar.gz -file包含这些不包含README的文件
comp_err.1
innochecksum.1
make_win_bin_dist.1
msql2mysql.1
my_print_defaults.1
myisam_ftdump.1
myisamchk.1
myisamlog.1
myisampack.1
mysql.1
mysql.server.1
mysql_config.1
mysql_convert_table_format.1
mysql_find_rows.1
mysql_fix_extensions.1
mysql_fix_privilege_tables.1
mysql_install_db.1
mysql_secure_installation.1
mysql_setpermission.1
mysql_tzinfo_to_sql.1
mysql_upgrade.1
mysql_waitpid.1
mysql_zap.1
mysqlaccess.1
mysqladmin.1
mysqlbinlog.1
mysqlbug.1
mysqlcheck.1
mysqld.8
mysqld_multi.1
mysqld_safe.1
mysqldump.1
mysqldumpslow.1
mysqlhotcopy.1
mysqlimport.1
mysqlmanager.8
mysqlshow.1
mysqlslap.1
perror.1
replace.1
resolve_stack_dump.1
resolveip.1
I copied the files to /usr/share/man/mysql. However, I could not access the manual by the keyword mysql
.
我将文件复制到/ usr / share / man / mysql。但是,我无法通过关键字mysql访问该手册。
Where should I put the files such that I can access them by Man?
我应该把文件放在哪里,以便我可以通过Man访问它们?
How can you install MySQL manuals to OS X Leopard?
如何在OS X Leopard上安装MySQL手册?
3 个解决方案
#1
The .1 suffix indicates the files go in section 1 of the manual. You'll need to make sure you move the files to /usr/share/man/man1 and that /usr/share/man is in your MANPATH environment variable (it should be already).
.1后缀表示文件在本手册的第1部分中。您需要确保将文件移动到/ usr / share / man / man1,并且/ usr / share / man在您的MANPATH环境变量中(它应该已经存在)。
#2
The ".tgz" means that these files are archived with tar and compressed with gzip. You should be able to open up the file with tar xvfz
and then the filename. Bear in mind that there may be multiple files, I don't know if they're in man format, and I don't know the directory structure. I'd do it in a working directory, not /usr/share/man
, just to see what it actually is.
“.tgz”表示这些文件使用tar存档并使用gzip压缩。您应该能够使用tar xvfz打开文件,然后使用文件名。请记住,可能有多个文件,我不知道它们是否为man格式,而且我不知道目录结构。我会在一个工作目录中这样做,而不是/ usr / share / man,只是为了看看它到底是什么。
Alternately, there are likely instructions where you downloaded the file.
或者,您可能会下载文件的说明。
#3
As man man
explains in detail, man
can access single compressed files (so it's OK to gzip one or more individual manpages and name them with a .gz
suffix) but cannot look inside archives of pages, and a tar
(gzipped or not) is exactly such an archive. So you need to unpack it, as @David mentions (you might then gzip each individual page, if you're desperate to save disk space).
正如man man详细解释的那样,man可以访问单个压缩文件(因此可以gzip一个或多个单独的联机帮助页,并用.gz后缀命名)但是无法查看页面内部的档案,而tar(gzip与否)是正是这样的档案。所以你需要解压缩它,正如@David所提到的那样(如果你不顾一切地想要节省磁盘空间,你可能会对每个页面进行gzip)。
#1
The .1 suffix indicates the files go in section 1 of the manual. You'll need to make sure you move the files to /usr/share/man/man1 and that /usr/share/man is in your MANPATH environment variable (it should be already).
.1后缀表示文件在本手册的第1部分中。您需要确保将文件移动到/ usr / share / man / man1,并且/ usr / share / man在您的MANPATH环境变量中(它应该已经存在)。
#2
The ".tgz" means that these files are archived with tar and compressed with gzip. You should be able to open up the file with tar xvfz
and then the filename. Bear in mind that there may be multiple files, I don't know if they're in man format, and I don't know the directory structure. I'd do it in a working directory, not /usr/share/man
, just to see what it actually is.
“.tgz”表示这些文件使用tar存档并使用gzip压缩。您应该能够使用tar xvfz打开文件,然后使用文件名。请记住,可能有多个文件,我不知道它们是否为man格式,而且我不知道目录结构。我会在一个工作目录中这样做,而不是/ usr / share / man,只是为了看看它到底是什么。
Alternately, there are likely instructions where you downloaded the file.
或者,您可能会下载文件的说明。
#3
As man man
explains in detail, man
can access single compressed files (so it's OK to gzip one or more individual manpages and name them with a .gz
suffix) but cannot look inside archives of pages, and a tar
(gzipped or not) is exactly such an archive. So you need to unpack it, as @David mentions (you might then gzip each individual page, if you're desperate to save disk space).
正如man man详细解释的那样,man可以访问单个压缩文件(因此可以gzip一个或多个单独的联机帮助页,并用.gz后缀命名)但是无法查看页面内部的档案,而tar(gzip与否)是正是这样的档案。所以你需要解压缩它,正如@David所提到的那样(如果你不顾一切地想要节省磁盘空间,你可能会对每个页面进行gzip)。