如何在Mac上运行GNU Typist / gtypist?

时间:2015-07-26 12:49:13

标签: gnu

我对命令行有点熟悉,但我仍然遇到运行GNU Typist / gtypist的问题。 http://www.gnu.org/software/gtypist/

任何人都可以给我一个非常基本的Mac分步说明吗?

3 个答案:

答案 0 :(得分:18)

使用Homebrew

brew install gnu-typist

答案 1 :(得分:1)

您也可以直接从源代码安装它(请注意,从源代码构建您需要安装XCode - 它是免费的,您可以从App Store下载):

  1. 获取gnu打字员的来源

    http://ftp.gnu.org/gnu/gtypist/gtypist-2.9.tar.gz

  2. 获取ncurses的来源

    我从GNU页面下载它:

    ftp://ftp.gnu.org/gnu/ncurses//ncurses-6.0.tar.gz.sig

    但您可以直接从维护者的页面获取最新版本:

    ftp://ftp.invisible-island.net/ncurses/ncurses.tar.gz

  3. 创建您想拥有所有内容的地方

    mkdir~ / opt / usr

  4. 构建ncurses - 注意--enable-widec

    ./ configure --enable-widec --with-shared --prefix = $ HOME / opt / usr /

    请; make install

  5. 构建gnutypist

    export LDFLAGS =“ - L $ HOME / opt / usr / lib”

    导出CFLAGS =“ - I $ HOME / opt / usr / include”

    ./ configure --prefix = $ HOME / opt / usr /

    请; make install

  6. 运行gnutypist

    cd $ HOME / opt / usr / bin

    ./ gtypist

答案 2 :(得分:0)

您也可以使用MacPorts(macos程序包管理器)来酿造

安装命令:

<TouchableHighlight
                    onPress={() => this.props.navigation.navigate('SnippetContainer', { snippet: item.code_block })}
                >
                    <View>
                        <Text style={{ color: 'white' }}>Fullscreen Snippet</Text>
                    </View>
</TouchableHighlight>

链接到端口摘要页面:

https://ports.macports.org/port/gtypist/summary