Coder Social home page Coder Social logo

Comments (7)

neevek avatar neevek commented on August 21, 2024

lightning 依赖 openssllibuv,你可以尝试使用以下命令安装依赖:

brew install openssl
brew install libuv

from lightning.

luckypoem avatar luckypoem commented on August 21, 2024

运行了
brew install openssl
brew install libuv
2者安装成功。
但是运行上面的make时还是遇到同样的错误。

from lightning.

neevek avatar neevek commented on August 21, 2024

如果依赖已经安装成功,但是 make 仍然失败,可以再尝试在 CMakeLists.txt 的第 7 行位置加上以下两行:

SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -I/usr/local/opt/openssl/include")
SET(CMAKE_LD_FLAGS "${CMAKE_LD_FLAGS} -L/usr/local/opt/openssl/lib")

P.S. 可以使用 brew --prefix openssl 查看 openssl 的安装位置。

from lightning.

luckypoem avatar luckypoem commented on August 21, 2024

谢谢你。现在可以翻#墙了。不过翻#墙速度好慢,很久都打不开youtube.com, 在哪里可以优化一下速度呢?

from lightning.

neevek avatar neevek commented on August 21, 2024

你可以 ping 一下你的 proxy 主机,看看 RTT 多少毫秒,看看网络是否稳定,如果有比较严重丢包,肯定会很慢的,而且也没有特别有效地优化方法。

目前 lightning 没有对各种网络情况做特别的优化。但优点是占用内存小,运行稳定(基本上不会有崩溃的情况)。

如果 RTT 比较大,但是没有丢包,可以通过 --window_size 参数把服务器端和客户端的 recv_buf/send_buf 调大一些试试。这样在较好的网络条件下可以有效提高吞吐量。

from lightning.

luckypoem avatar luckypoem commented on August 21, 2024

现在看youtube流畅了。可能是我的网络问题。你没考虑过推出windows下的客户端程序吗?以便惠及更多的人

from lightning.

neevek avatar neevek commented on August 21, 2024

目前没有打算支持 windows 客户端,但其实这里用的都是跨平台的库,支持 windows 要做的事情其实不多,有兴趣可以 fork。

from lightning.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.