无法将 MySQL 手册安装到 Mac
这个问题基于线程。
我将手册下载为文件“v5.1 (Maria) TGZ”。 我将文件移至 /usr/share/man/
。 我无法通过
man mysqlbug
.tar.gz 文件访问手册,这些文件不包括自述文件,
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
我将这些文件复制到 /usr/share/man/mysql。 但是,我无法通过关键字 mysql
访问手册。
我应该把这些文件放在哪里,以便我可以通过 Man 访问它们?
如何将 MySQL 手册安装到 OS X Leopard?
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
man mysqlbug
The .tar.gz -file has these files which do not include 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
.
Where should I put the files such that I can access them by Man?
How can you install MySQL manuals to OS X Leopard?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
.1 后缀表示文件位于手册的第 1 节中。 您需要确保将文件移动到 /usr/share/man/man1 并且 /usr/share/man 位于您的 MANPATH 环境变量中(它应该已经存在)。
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).
“.tgz”表示这些文件是用 tar 归档并用 gzip 压缩的。 您应该能够使用
tar xvfz
打开该文件,然后使用文件名。 请记住,可能有多个文件,我不知道它们是否是 man 格式,也不知道目录结构。 我会在工作目录中执行此操作,而不是在/usr/share/man
中,只是为了看看它实际上是什么。或者,可能还有您下载文件的位置的说明。
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.Alternately, there are likely instructions where you downloaded the file.
正如
man man
详细解释的那样,man
可以访问单个压缩文件(因此可以 gzip 一个或多个单独的联机帮助页并使用.gz
命名它们) code> 后缀),但无法查看页面存档的内部,而tar
(压缩或未压缩)正是这样的存档。 因此,您需要解压它,正如 @David 提到的那样(如果您迫切希望节省磁盘空间,您可以对每个单独的页面进行 gzip 压缩)。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 atar
(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).