-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
在mac上,make失败,如何解决? #6
Comments
已修复,pull 最新版本再编译试试 |
hi. 我重新克隆了,然后make,仍然遇到错误: 如何解决? |
很奇怪,我之前在vps上可以make成功,为何在mac上却 make失败呢? |
暂时仅支持 Linux |
谷歌了一下,你可以试试把所有的 PTHREAD_MUTEX_RECURSIVE_NP 替换成 PTHREAD_MUTEX_RECURSIVE 然后再编译看看 |
在哪里改PTHREAD_MUTEX_RECURSIVE_NP?我没看见他们 |
全文搜索一下你就看到了,我记得应该只有几个地方 |
HI. 你说的“全文搜索”是指在哪里搜索? |
随便找个 IDE 就有代码全文搜索了嘛 On Sat, Apr 9, 2016 at 3:43 PM, luckypoem [email protected] wrote:
|
哦, |
hi. 你在https://github.com/greensea/mptunnel/blob/master/README.zh_CN.md 里说:“3000 是 mpclient 在本地监听的端口”,怎么在client.conf里体现这个端口?如何修改3000为其他端口? |
暂时改不了,其实现在代码中使用的端口是 3002 而不是 3000
把 3002 改成你想要的端口然后重新编译即可 |
hi. 我在mac上安装了openvpn的客户端程序tunnelblick,不过openvpn客户端的配置文件里如何写路由呢?我的 我的路由写成route add -net 10.9.0.2 netmask 255.255.255.0,对吗?? root@AR:/etc/openvpn# cat openvpn-static-key-mode.conf 我服务器上的openvpn在运行中: 服务器上的mpserver在运行中: 本地机器的mpclient也在运行中: 但在本地机器mac上,用tunnelblick就是连不上openvpn server,不知为什么? |
首先,去掉 mptunnel,看看 openvpn 是否能够成功连接,如果能够成功连接,那就可以排除 openvpn 的配置文件的问题。 |
去掉 mptunnel,openvpn肯定是连不上的。(2012年底开始,openvpn的流量就被gfw识别导致openvpn无法使用) 你曾经通过mptunnel从而成功连上过openvpn server吗?如果成功过,可否在你的博客上发篇文章,详细介绍介绍? 现在openvpn基本上成为废物。非常感谢! |
倒也不一定连不上,我当时遇到的情况是能够连上,但是用了几分钟之后就连不上了。过一段时间之后又可以连上,然后用了几分钟之后又再次连不上了。 |
问题是我这里根本连不上。以前按此文http://www.chinagfw.org/2012/12/openvpngfw.html ,搭建了静态密钥模式的openvpn,但是今年三月中以来就连不上了。所以才想到用你这个mptunnel来给openvpn做个“套子”,但未搞成功。你可否亲自在你的vps上搭建静态密钥模式的openvpn并搭建mptunnel,看看是否能翻墙呢? |
奇怪,好像我前几天的回复被吃掉了。 你可以先把服务器端的配置文件复制到本地,在本地启动 OpenVPN 服务器,然后测试一下是否能够正常连接。这样可以先确认配置文件没有问题 |
hi.
我之前已用brew install libev安装了libev.
yudeMacBook-Air:mptunnel brite$ ls
LICENSE client.sample.conf rbtree.c
Makefile linklist.h rbtree.d
README.md mptunnel.c rbtree.h
README.zh_CN.md mptunnel.d server.c
buffer.h mptunnel.h server.d
client.c net.c server.h
client.d net.d
client.h net.h
yudeMacBook-Air:mptunnel brite$ make
gcc -g -Wall -I/usr/include/libev -c -o client.o client.c
In file included from client.c:17:
./mptunnel.h:114:6: error: conflicting types for 'encrypt'
void encrypt(char* buf, int size, uint32_t);
^
/usr/include/unistd.h:544:7: note: previous declaration is here
void encrypt(char *, int) __DARWIN_ALIAS(encrypt);
^
1 error generated.
make: ** [client.o] Error 1
yudeMacBook-Air:mptunnel brite$
tks
The text was updated successfully, but these errors were encountered: