在windows下安裝concurrentlua

2022-02-24 05:14:00 字數 752 閱讀 7638

concurrentlua的makefile只提供了unix下的版本,如果直接按make裡面得拷貝路徑安排檔案

在windows下是無法湊效的。這裡我把我在windows下安裝concurrentlua的經驗分享一下。

首先,我把lua的根目錄設定為d:/lua.

接下來是最複雜的concurrentlua了,首先,為cltime和cldaemon分別建立兩個dll工程,

分別為luaopen_cltime(lua_state

*lua)和luaopen_cldaemon(lua_state

*lua)新增上

__declspec(dllexport),然後編譯.產生的dll放在root/concurrent下。

接著用notepad開啟clpmd,把#!/usr/bin/lua去掉,並把檔案改成clpmd.lua.

現在,將src/concurrent/init.lua檔案重新命名為concurrent.lua並拷貝到root下面。

其餘檔案包括目錄distributed一起拷到root/concurrent下面.把root/concurrent/distributed/init.lua

重新命名為distributed.lua,拷貝到root/concurrent/.

最後,設定lua_path =

d:/lua/?.lua,lua_cpath=d:/lua/?.dll;d:/lua/concurrent/?.dll

好了,大功告成,可以試試samples下的例子了.

在windows下安裝webpy

prerequisite 1.install python 2.download webpy steps 1.解壓webpy壓縮包 2.type win r type cmd 在webpy安裝目錄下 type python setup.py install import web urls index...

Theano 在windows下安裝

theano win8 一切為了 deep learning 選擇安裝方式 anacondace 學術免費 simply download and execute the installer from anacondace downlowad page then download and execu...

在Windows下安裝UAAC

23年工作經驗,長期在杜邦 歐文斯科寧 莊信萬豐等從事製造業資訊化工作,規劃 實施了大量mes sap erp lims bpm等專案,積累了豐富的製造業數位化轉型經驗。uaac是uaa command lineclient,在predix中以命令列的方式用來管理使用者及相關許可權。儘管predix...