这两种方法我都知道,也都试过...难道说是我哪里操作失误了? 我再试试第二种吧。有什么问题我再问您可以么? 你照着那篇博文做,基本上就可以了,只是因为各人系统环境不同、版本不同,安装时会有各种错误出现,解决不了时就来问吧。 我现在做到了 ———————————————————————————————————————————————————— 我选用第二种方式,这也是Google推荐的方式。 git clone https://github.com/booyah/protobuf-objc.git 默认会在当前运行目录下创建protobuf-objc目录。进入该目录,并执行: ./autogen.sh ———————————————————————————————————————————————————— 这一步,但是运行的时候出现了: autogen.sh: line 8: autoreconf: command not found 这个提示 我去查了一下,要安装automake,看网上很多安装的命令,但是脚本运行完了还是提示上面的问题 现在就卡在这里了
这两种方法我都知道,也都试过...难道说是我哪里操作失误了? 我再试试第二种吧。有什么问题我再问您可以么? 你照着那篇博文做,基本上就可以了,只是因为各人系统环境不同、版本不同,安装时会有各种错误出现,解决不了时就来问吧。 我现在做到了 ———————————————————————————————————————————————————— 我选用第二种方式,这也是Google推荐的方式。 git clone https://github.com/booyah/protobuf-objc.git 默认会在当前运行目录下创建protobuf-objc目录。进入该目录,并执行: ./autogen.sh ———————————————————————————————————————————————————— 这一步,但是运行的时候出现了: autogen.sh: line 8: autoreconf: command not found 这个提示 我去查了一下,要安装automake,看网上很多安装的命令,但是脚本运行完了还是提示上面的问题 现在就卡在这里了后面好像让我下载jar包才能安装automake,然后我下载了,结果还是不能安装和运行,这个问题怎么解决
安装automake时提示什么错误?
我试了两种方法: 第一种: ./autogen.sh: 4: autoreconf: not found 是在不同版本的 tslib 下执行 autogen.sh 产生。它们产生的原因一样,是 因为没有安装automake 工具, (ubuntu 10.04)用下面的命令安装好就可以了。 sudo apt -get install autoconf automake libtool 这个提示需要安装jar包,安装过后再运行提示 Unable to locate an executable at "/Library/Java/JavaVirtualMachines/jdk1.8.0_11.jdk/Contents/Home/bin/apt" (-1)第二种:使用以下脚本 ________________________________________________________________________ curl -O http://mirrors.kernel.org/gnu/m4/m4-1.4.13.tar.gz tar -xzvf m4-1.4.13.tar.gz cd m4-1.4.13 ./configure --prefix=/usr/local make sudo make install cd .. curl -O http://mirrors.kernel.org/gnu/autoconf/autoconf-2.65.tar.gz tar -xzvf autoconf-2.65.tar.gz cd autoconf-2.65 ./configure --prefix=/usr/local # ironic, isn't it? make sudo make install cd .. # here you might want to restart your terminal session, to ensure the new autoconf is picked up and used in the rest of the script curl -O http://mirrors.kernel.org/gnu/automake/automake-1.11.tar.gz tar xzvf automake-1.11.tar.gz cd automake-1.11 ./configure --prefix=/usr/local make sudo make install cd .. curl -O http://mirrors.kernel.org/gnu/libtool/libtool-2.2.6b.tar.gz tar xzvf libtool-2.2.6b.tar.gz cd libtool-2.2.6b ./configure --prefix=/usr/local make sudo make install ________________________________________________________________________ 然后没有任何提示,就是一些运行的提示,好像是成功了。生成了文件夹,这个不知道后面还需要什么操作 如图 然后我再次执行 ./autogen.sh 还是一样的提示:autogen.sh: line 8: autoreconf: command not found
———————————————————————————————————————— #!/bin/sh # # This script regenerates the authconf-based configure script. The resulting # files aren't managed by source control but are included in the distribution.set -e mkdir -p m4 autoreconf -f -i -Wall <—这句跑不过去 rm -rf autom4te.cache configure.ac~ config.h.in~ exit 0 ———————————————————————————————————————————— 这个是我要运行的autogen.sh
二是用objc版的,参照这篇文章即可http://www.cnblogs.com/tara/archive/2012/03/20/2407951.html,这种方式比较好, 不依赖protoc的类库了。
我再试试第二种吧。有什么问题我再问您可以么?
你照着那篇博文做,基本上就可以了,只是因为各人系统环境不同、版本不同,安装时会有各种错误出现,解决不了时就来问吧。
我现在做到了
————————————————————————————————————————————————————
我选用第二种方式,这也是Google推荐的方式。
git clone https://github.com/booyah/protobuf-objc.git
默认会在当前运行目录下创建protobuf-objc目录。进入该目录,并执行:
./autogen.sh
————————————————————————————————————————————————————
这一步,但是运行的时候出现了:
autogen.sh: line 8: autoreconf: command not found
这个提示
我去查了一下,要安装automake,看网上很多安装的命令,但是脚本运行完了还是提示上面的问题
现在就卡在这里了
我再试试第二种吧。有什么问题我再问您可以么?
你照着那篇博文做,基本上就可以了,只是因为各人系统环境不同、版本不同,安装时会有各种错误出现,解决不了时就来问吧。
我现在做到了
————————————————————————————————————————————————————
我选用第二种方式,这也是Google推荐的方式。
git clone https://github.com/booyah/protobuf-objc.git
默认会在当前运行目录下创建protobuf-objc目录。进入该目录,并执行:
./autogen.sh
————————————————————————————————————————————————————
这一步,但是运行的时候出现了:
autogen.sh: line 8: autoreconf: command not found
这个提示
我去查了一下,要安装automake,看网上很多安装的命令,但是脚本运行完了还是提示上面的问题
现在就卡在这里了后面好像让我下载jar包才能安装automake,然后我下载了,结果还是不能安装和运行,这个问题怎么解决
第一种:
./autogen.sh: 4: autoreconf: not found
是在不同版本的 tslib 下执行 autogen.sh 产生。它们产生的原因一样,是
因为没有安装automake 工具, (ubuntu 10.04)用下面的命令安装好就可以了。
sudo apt -get install autoconf automake libtool
这个提示需要安装jar包,安装过后再运行提示
Unable to locate an executable at "/Library/Java/JavaVirtualMachines/jdk1.8.0_11.jdk/Contents/Home/bin/apt" (-1)第二种:使用以下脚本
________________________________________________________________________
curl -O http://mirrors.kernel.org/gnu/m4/m4-1.4.13.tar.gz
tar -xzvf m4-1.4.13.tar.gz
cd m4-1.4.13
./configure --prefix=/usr/local
make
sudo make install
cd ..
curl -O http://mirrors.kernel.org/gnu/autoconf/autoconf-2.65.tar.gz
tar -xzvf autoconf-2.65.tar.gz
cd autoconf-2.65
./configure --prefix=/usr/local # ironic, isn't it?
make
sudo make install
cd ..
# here you might want to restart your terminal session, to ensure the new autoconf is picked up and used in the rest of the script
curl -O http://mirrors.kernel.org/gnu/automake/automake-1.11.tar.gz
tar xzvf automake-1.11.tar.gz
cd automake-1.11
./configure --prefix=/usr/local
make
sudo make install
cd ..
curl -O http://mirrors.kernel.org/gnu/libtool/libtool-2.2.6b.tar.gz
tar xzvf libtool-2.2.6b.tar.gz
cd libtool-2.2.6b
./configure --prefix=/usr/local
make
sudo make install
________________________________________________________________________
然后没有任何提示,就是一些运行的提示,好像是成功了。生成了文件夹,这个不知道后面还需要什么操作
如图
然后我再次执行 ./autogen.sh
还是一样的提示:autogen.sh: line 8: autoreconf: command not found
如果安装成功了但是不能用可能是查找路径的原因。
怎么解决?
#!/bin/sh
#
# This script regenerates the authconf-based configure script. The resulting
# files aren't managed by source control but are included in the distribution.set -e
mkdir -p m4
autoreconf -f -i -Wall <—这句跑不过去
rm -rf autom4te.cache configure.ac~ config.h.in~
exit 0
————————————————————————————————————————————
这个是我要运行的autogen.sh
第一步完成了:下载ProtocolBuffer包,并按照包中根目录下README.txt安装。会生成编译器protoc
可是接下来不会了,我扣扣:136035603
$ ./configure
$ make
$ make check
$ make install