LinuxForum.Fans
Тема

wx Dictionary Search

Автор: xxblx 52 сообщений 17521 просмотров
24.01.2014 01:47 · отредактировано #362078

wx Dictionary Search - приложение для поиска терминов в локальных словарях.

Приложение распространяется согласно условиям лицензии GNU GPL v3 или более новой.

Поддерживаются словари в формате обычных текстовых файлов (plain text).

Показать
Например:
[console][xxblx@localhost dictionaries]$ file Брокгауз_Ефрон
Брокгауз_Ефрон: UTF-8 Unicode text, with very long lines
[xxblx@localhost dictionaries]$ file БСЭ.txt
БСЭ.txt: UTF-8 Unicode text, with very long lines
[xxblx@localhost dictionaries]$ file Ефремова
Ефремова: UTF-8 Unicode text, with very long lines, with CRLF line terminators[/console]
Брокгауз_Ефрон - 5257 строк (терминов)
БСЭ.txt - 75484 строк (терминов)
Ефремова - 123227 строк (терминов)

Функционал:

  • Добавление/удаление локальных словарей;
  • Поиск по всем словарям, только по отмеченным или во всех кроме отмеченных;
  • Игнорирование регистра;
  • Поиск только слова целиком (если включено, по запросу "авто" найдет только "авто", если выключено, найдет "автоматизированный", "автомобиль" и т.д.);
  • Конфиг приложения в ini файле, расположенном в ~/.config/wxdictionarysearch/conf.ini ($XDG_CONFIG_HOME/wxdictionarysearch/conf.ini). Подробности о XDG_CONFIG_HOME см. в спецификации XDG Base Directory.

Для работы приложения потребуются:

  • Python 2
  • wxPython
  • gettext

Исходный код доступен в Git-репозитории на bitbucket.org: https://bitbucket.org/xxblx/wx-dictionary-search
Инструкция по ручной установке в GNU/Linux: https://bitbucket.org/xxblx/wx-dictionary-search/wiki/Ручная%20установка%20в%20Linux

Старая шапка с информацией о старом быдлокоде старой Lua-версии (wxLua Dictionary Search).

Показать
wxLua Dictionary Search
Идея навеяна топиком: Правка/поиск текста

Приложение для поиска по словарям. Поддерживает словари в формате текстовых файлов.

Показать
Например:
[console][xxblx@localhost dictionaries]$ file Брокгауз_Ефрон
Брокгауз_Ефрон: UTF-8 Unicode text, with very long lines
[xxblx@localhost dictionaries]$ file БСЭ.txt
БСЭ.txt: UTF-8 Unicode text, with very long lines
[xxblx@localhost dictionaries]$ file Ефремова
Ефремова: UTF-8 Unicode text, with very long lines, with CRLF line terminators[/console]
Брокгауз_Ефрон - 5257 строк
БСЭ.txt - 75484 строк
Ефремова - 123227 строк

Возможности:

  • Добавление и удаление словарей через меню "Файл"
  • Поиск по всем словарям
  • Поиск только по выделенным словарям
  • Поиск по всем словарям, кроме выделенных
  • Игнорирование регистра (опционально)
  • Поиск только "целого слова" (опционально, по запросу "арбуз" при вкл. найдет только "арбуз", при выкл. найдет "арбуз", "арбузный", "арбузов" и т.д.)
  • Сохранение результатов поиска в файл

TODO:

  • Поиск в описаниях (т.е. по запросу "арбуз" чтобы выдавало не только определения слова "арбуз", но и другие слова, в определениях которых упоминается арбуз)

Установка:

Показать
[console]$ git clone ht[span]tps://github.com/xxblx/wxLua-[/span]Dictionary-Search
$ cd wxLua-Dictionary-Search
$ lua main.lua[/console]
или
[console]$ wget ht[span]tps://github.com/xxblx/wxLua-[/span]Dictionary-Search/archive/master.zip
$ unzip wxLua-Dictionary-Search-master.zip
$ cd wxLua-Dictionary-Search-master
$ lua main.lua[/console]

Зависимости:

При создании приложения использовалась wxLua 2.8.12.3, собранная с Lua 5.2, wxGTK 2.8.12.
Работоспособность приложения не проверялась с другими версиями wxWidgets (wxGTK) и wxLua + Lua 5.1 / LuaJIT.
---

Поскольку "из коробки" Lua не может изменять регистр у букв русского алфавита (string.upper и string.lower работают только с английскими буквами), для реализации смены регистра у строк, содержащих символы русского алфавита, используется сторонний самописный модуль Lua ru_str.

Ссылки:

Лицензия: GNU GPL v3

Скриншоты:



Цель создания программы и ответ на вопрос "Почему wxLua?":
1. Потому что могу
2. Практика навыка
3. Нравится wxWidgets

UPD:
wxLua мало где есть в собранном виде в репозитории, по этому вот небольшая заметка по сборке

Показать
Для сборки потребуются:
  • cmake
  • make
  • gcc
  • dev-пакет lua
    liblua-dev / liblua-devel
    liblua5.1-dev / liblua5.1-devel
    liblua5.2-dev / liblua5.2-devel
    и т.д.
    В зависимости от того, с какой версией будете собирать
  • dev-пакет библиотеки wxwidgets (wxgtk)
    libwxgtku2.8-devel
    libwxwidgetsu2.9-devel
    и т.д.
  • libncurses5-devel

[console]mkdir -p ~/wxLua
cd ~/wxLua
wget ht[span]tp://skylink.dl.sourceforge.net/project/wxlua/wxlua/2.8[/span].12.3/wxLua-2.8.12.3-src.tar.gz
tar xvfz wxLua-2.8.12.3-src.tar.gz
cd wxLua-2.8.12.3-src
cmake -DwxLua_LUA_LIBRARY_VERSION=5.2 .
make [/console]

У wxLua_LUA_LIBRARY_VERSION указываем ту версию, с которой хотим собрать wxLua.

text
wxLua_LUA_LIBRARY_VERSION=5.2 - если хотим собрать и использовать с Lua 5.2
wxLua_LUA_LIBRARY_VERSION=5.1 - если с 5.1 

По окончанию сборки в ~/wxLua/wxLua-2.8.12.3-src/bin/lib/Debug появятся собранные библиотеки wxLua
[console][xxblx@localhost Debug]$ ls
libwxlua_bind-wx28gtk2ud-2.8.12.3.so* libwxlua-wx28gtk2ud-2.8.12.3.so*
libwxlua_debugger-wx28gtk2ud-2.8.12.3.so* libwx.so*
libwxlua_debug-wx28gtk2ud-2.8.12.3.so* libwxstedit-wx28gtk2ud-1.6.0.so*
libwxlua_lua52-wx28gtk2ud-2.8.12.3.so*[/console]
Сразу нужно переименовать в libwx.so в wx.so.

Дальше:
Вариант 1. Кладем библиотеки в каталог, определенный в package.cpath (например, для Lua 5.2 у меня это /usr/lib/lua/5.2/)
Открываем терминал
[console]lua
print(package.cpath)[/console]
И увидим в ответ что-то вроде

text
/usr/lib/lua/5.2/?.so;/usr/lib/lua/5.2/loadall.so;/usr/lib64/lua/5.2/?.so;/usr/lib64/lua/5.2/loadall.so;./?.so

Тут думаю все понятно, куда дальше класть. Кладем, запускаем программу (main.lua).

Вариант 2. Сначала проверим работоспособность библиотек.
Создаем каталог wx, складываем туда библиотеки, копируем каталог в папку с программой. Получится, например, так: ~/wxLua Dictionary Search/wx/и_тут_уже_сами_библиотеки.
Открываем ui.lua и перед строкой

text
local wx = require("wx")

Добавляем строку

text
package.cpath = ";./wx/?.so;"

И после запускаем файл main.lua.

24.01.2014 04:10 · отредактировано #362097
text
lua-5.2.3 $ make linux test
cd src && make linux
make[1]: Вход в каталог `/home/user/software/source/lua-5.2.3/src'
make all SYSCFLAGS="-DLUA_USE_LINUX" SYSLIBS="-Wl,-E -ldl -lreadline"
make[2]: Вход в каталог `/home/user/software/source/lua-5.2.3/src'
gcc -O2 -Wall -DLUA_COMPAT_ALL -DLUA_USE_LINUX    -c -o lua.o lua.c
lua.c:67:31: фатальная ошибка: readline/readline.h: Нет такого файла или каталога
компиляция прервана.
make[2]: *** [lua.o] Ошибка 1
make[2]: Выход из каталога `/home/user/software/source/lua-5.2.3/src'
make[1]: *** [linux] Ошибка 2
make[1]: Выход из каталога `/home/user/software/source/lua-5.2.3/src'
make: *** [linux] Ошибка 2

Что делать?
OS: Linux Mint 14, MATE, 32 bit

24.01.2014 04:27 · отредактировано #362099

ПОП, это вы саму Lua собрать пытаетесь?
В репозитории же должна хоть какая-то версия быть.
Покажите
[console]sudo apt-cache search lua[/console]

и может быть какая-то версия Lua уже в системе имеется
[console]lua -v[/console]

24.01.2014 04:30 #362100
"xxblx" написал:
Покажите
Консоль
sudo apt-cache search lua
text
cpu-checker - tools to help evaluate certain CPU (or BIOS) features
eperl - Embedded Perl 5 Language
hardening-includes - Makefile for enabling compiler flags for security hardening
libcroco3 - Cascading Style Sheet (CSS) parsing and manipulation toolkit
libcroco3-dev - Cascading Style Sheet (CSS) parsing and manipulation toolkit
libgtksourceview-3.0-common - common files for the GTK+ syntax highlighting widget
libjaxen-java - Java XPath engine
libjaxen-java-doc - Java XPath engine - documentation
liblua5.1-0 - Shared library for the Lua interpreter version 5.1
liblua5.1-0-dbg - Debug symbols for the Lua shared library interpreter
liblua5.1-0-dev - Development files for the Lua language version 5.1
liblua5.1-rrd-dev - time-series data storage and display system (Lua 5.1 development)
liblua5.1-rrd0 - time-series data storage and display system (Lua 5.1 interface)
libquvi-scripts - library for parsing video download links (Lua scripts)
libtext-template-perl - Text::Template perl module
lua5.1-doc - Documentation for the Lua language version 5.1
luatex - next generation TeX engine
python-jinja2 - small but fast and easy to use stand-alone template engine
python3-jinja2 - small but fast and easy to use stand-alone template engine
texlive-base - TeX Live: Essential programs and files
texlive-latex-extra - TeX Live: LaTeX supplementary packages
texlive-latex-recommended - TeX Live: LaTeX recommended packages
texlive-luatex - TeX Live: LuaTeX packages
texlive-math-extra - TeX Live: Advanced math typesetting
vim-gnome - Vi IMproved - enhanced vi editor - with GNOME2 GUI
autogen - автоматизированный генератор текстовых файлов
exuberant-ctags - составление индексов объявлений различных конструкций в исходном коде
libgtksourceview2.0-common - общие файлы для виджета подсветки синтаксиса для GTK+
lua5.1 - простой, расширяемый, встраиваемый язык программирования
eagle-data - Data files for Eagle
notion - tiling tabbed window manager designed for keyboard users
r-cran-surveillance - development and the evaluation of epidemiological outbreak detection algorithms
eagle - Printed circuit board design tool
crafty-books-medium - Книги дебютов среднего размера для шахматного движка crafty
crafty-books-medtosmall - Книги дебютов размером ниже среднего для шахматного движка crafty
crafty-books-small - Книги дебютов малого размера для шахматного движка crafty
apbs - Adaptive Poisson Boltzmann Solver
apel - portable library for emacsen
awesome - highly configurable X window manager
bam - fast and flexible build system
boinc-app-seti - SETI@home application for the BOINC client
bpython - fancy interface to the Python interpreter - Curses frontend
bpython-gtk - fancy interface to the Python interpreter - GTK+ frontend
bpython-urwid - fancy interface to the Python interpreter - urwid frontend
bpython3 - fancy interface to the Python interpreter - Curses frontend
cl-launch - uniform frontend to running Common Lisp code from the shell
cmuscheme48-el - Emacs mode specialized for Scheme48
conky-all - highly configurable system monitor (all features enabled)
conky-std - highly configurable system monitor (default version)
cp2k - Ab Initio Molecular Dynamics
cpuset - Allows manipluation of cpusets and provides higher level fun
crm114 - versatile classifier for e-mail and other data
deets - decentralized model-based administration tool
devilspie2 - LUA-based window matching utility
dh-lua - helper tools for maintaining Lua-related packages
dolfin-bin - Executable scripts for DOLFIN
dolfin-dev - Empty package depending on latest DOLFIN development package
dolfin-doc - Documentation and demo programs for DOLFIN
drgeo - interactive geometry software
eatmydata - library and utilities designed to disable fsync and friends
elki - Data mining algorithm development framework
fcc - Script to compile C/C++ programs and link to Fortran libraries
fceux - Cross platform, NTSC and PAL Famicom/NES emulator
fcitx-module-lua - Flexible Input Method Framework - Lua module
freemind-plugins-script - Java Plugin for FreeMind to add scripting capabilities
galax - XQuery implementation with static typing - command line front-ends
gbonds - U.S. savings bond inventory program for GNOME
geiser - enhanced Scheme interaction mode for Emacs
gimp-gluas - Lua environment plug-in for GIMP
goaccess - log analyzer and interactive viewer for the Apache Webserver
gpivtools - command line programs for Particle Image Velocimetry
gpivtools-mpi - command line programs for Particle Image Velocimetry - MPI version
gpsshogi-data - data files for gpsshogi
gregoriotex - LuaTeX style for Gregorian chant scores
haserl - CGI scripting program for embedded environments
hexec - Command line tool to hook into exec calls
infon-devel - Develop bots for the infon game
instead - simple text adventures/visual novels engine
instead-data - data files for INSTEAD
ipe - drawing editor for creating figures in PDF or PS formats
janino - Runtime Java compiler
japa - JACK and ALSA Perceptual Analyser
jclicmoodle - JClic module for Moodle
kamailio-lua-modules - contains the app_lua module
kiki - tool for python regular expression testing
klatexformula - GUI to easily get an image from a LaTeX formula or equation
libaudiomask-dev - Audio masking threshold estimation lib headers, docs and examples
libaudiomask1 - Audio masking threshold estimation library
libbiojava-java - Java API to biological data and applications (default version)
libbiojava3-java - Java API to biological data and applications (default version)
libclassad-dev - Condor classads expression language - development library
libclassad3 - Condor classads expression language - runtime library
libcommons-el-java - Implementation of the JSP2.0 Expression Language interpreter
libcroco-tools - Cascading Style Sheet (CSS) parsing and manipulation toolkit - utils
libcsnd-dev - development files for Csound -- C++ API
libdata-rmap-perl - Perl module implementing a recursive map, applying a block to a data structure
libdbix-simple-perl - Perl module implementing an simpler interface to DBI
libdevel-beginlift-perl - make selected sub calls evaluate at compile time
libdevel-repl-perl - module for building a modern Perl interactive shell
libdolfin1.0 - Shared libraries for DOLFIN
libdolfin1.0-dbg - Shared libraries with debugging symbols for DOLFIN
libdolfin1.0-dev - Shared links and header files for DOLFIN
libeval-context-perl - evalute perl code in context wrapper
libghc-highlighting-kate-dev - syntax highlighting library based on Kate syntax descriptions
libghc-highlighting-kate-doc - library documentation for highlighting-kate
libghc-highlighting-kate-prof - highlighting-kate library with profiling enabled
libghc-hint-dev - runtime Haskell interpreter (GHC API wrapper)
libghc-hint-doc - runtime Haskell interpreter (GHC API wrapper); documentation
libghc-hint-prof - runtime Haskell interpreter (GHC API wrapper); profiling libraries
libghc-shellac-dev - Framework for creating shell environments
libghc-shellac-doc - Framework for creating shell environments; documentation
libghc-shellac-prof - Framework for creating shell environments; profiling libraries
libghc-strict-concurrency-dev - Haskell strict concurrency abstractions - GHC libraries
libghc-strict-concurrency-doc - Haskell strict concurrency abstractions - documentation
libghc-strict-concurrency-prof - Haskell strict concurrency abstractions - GHC profiling libraries
libgpiv-mpi3 - library for Particle Image Velocimetry (PIV) - MPI version
libgpiv3 - library for Particle Image Velocimetry (PIV)
libgpiv3-common - library for Particle Image Velocimetry (PIV) - common files
libgpiv3-dbg - library for Particle Image Velocimetry (PIV) - debug symbols
libgpiv3-dev - library for Particle Image Velocimetry (PIV) - development files
libgpiv3-doc - library for Particle Image Velocimetry (PIV) - documentation
libgv-lua - Lua bindings for graphviz
libhmsbeagle-dev - High-performance lib for Bayesian and Maximum Likelihood phylogenetics
libhmsbeagle-java - High-performance lib for Bayesian and Maximum Likelihood phylogenetics
libhmsbeagle1 - High-performance lib for Bayesian and Maximum Likelihood phylogenetics
libint-dbg - Evaluate the integrals in modern atomic and molecular theory (debug)
libint-dev - Evaluate the integrals in modern atomic and molecular theory (devel)
libint1 - Evaluate the integrals in modern atomic and molecular theory
libipa-hbac-dev - FreeIPA HBAC Evaluator library
libipa-hbac0 - FreeIPA HBAC Evaluator library
libisajet758-3-dev - [Physics] Monte Carlo generator for proton/electron reactions
libisajet758-3-gfortran - [Physics] Monte Carlo generator for proton / electron reactions
libjs-coffeescript - client-side interpreter for the CoffeeScript language
libklatexformula3 - Runtime libraries for klatexformula
libklatexformula3-dev - Runtime libraries for klatexformula, development files
liblangscan-ruby - Ruby module of scanners for programming languages
liblip-dev - reliable interpolation of multivariate scattered data
liblip2 - reliable interpolation of multivariate scattered data
liblua5.1-apr-dev - Transitional package for lua-apr-dev
liblua5.1-apr1 - Transitional package for lua-apr
liblua5.1-bitop-dev - Transitional package for lua-bitop-dev
liblua5.1-bitop0 - Transitional package for lua-bitop
liblua5.1-cgi-dev - Transitional package for lua-cgi
liblua5.1-cgi0 - Transitional package for lua-cgi
liblua5.1-copas-dev - Transitional package for lua-copas
liblua5.1-copas0 - Transitional package for lua-copas
liblua5.1-cosmo0 - Transitional package for lua-cosmo
liblua5.1-coxpcall0 - Transitional package for lua-coxpcall
liblua5.1-curl-dev - Transitional package for lua-curl-dev
liblua5.1-curl0 - Transitional package for lua-curl
liblua5.1-cyrussasl-dev - Transitional package for lua-cyrussasl-dev
liblua5.1-cyrussasl0 - Transitional package for lua-cyrussasl
liblua5.1-doc0 - Transitional package for lua-doc
liblua5.1-event-dev - Transitional package for lua-event-dev
liblua5.1-event0 - Transitional package for lua-event
liblua5.1-expat-dev - Transitional package for lua-expat-dev
liblua5.1-expat0 - Transitional package for lua-expat
liblua5.1-filesystem-dev - Transitional package for lua-filesystem-dev
liblua5.1-filesystem0 - Transitional package for lua-filesystem
liblua5.1-iconv0 - Transitional package for lua-iconv
liblua5.1-json - Transitional package for lua-json
liblua5.1-leg-dev - Transitional package for lua-leg-dev
liblua5.1-leg0 - Transitional package for lua-leg
liblua5.1-logging - Transitional package for lua-logging
liblua5.1-logging-dev - Transitional package for lua-logging
liblua5.1-lpeg-dev - Transitional package for lua-lpeg-dev
liblua5.1-lpeg2 - Transitional package for lua-lpeg
liblua5.1-luacsnd5.2 - Lua bindings for the Csound API
liblua5.1-markdown0 - Transitional package for lua-markdown
liblua5.1-md5-0 - Transitional package for lua-md5
liblua5.1-md5-dev - Transitional package for lua-md5-dev
liblua5.1-oocairo-dev - Cairo vector graphics API for Lua - development files
liblua5.1-oocairo0 - provides Lua with full access to the Cairo vector graphics API
liblua5.1-oopango-dev - Pango API for Lua - development files
liblua5.1-oopango0 - provides Lua with full access to the Pango text rendering API
liblua5.1-orbit-dev - Transitional package for lua-orbit
liblua5.1-orbit1 - Transitional package for lua-orbit
liblua5.1-posix-dev - Transitional package for lua-posix-dev
liblua5.1-posix1 - Transitional package for lua-posix
liblua5.1-rex-onig-dev - Transitional package for lua-rex-onig-dev
liblua5.1-rex-onig0 - Transitional package for lua-rex-onig
liblua5.1-rex-pcre-dev - Transitional package for lua-rex-pcre-dev
liblua5.1-rex-pcre0 - Transitional package for lua-rex-pcre
liblua5.1-rex-posix-dev - Transitional package for lua-rex-posix-dev
liblua5.1-rex-posix0 - Transitional package for lua-rex-posix
liblua5.1-rings-dev - Transitional package for lua-rings-dev
liblua5.1-rings0 - Transitional package for lua-rings
liblua5.1-sec-dev - Transitional package for lua-sec
liblua5.1-sec1 - Transitional package for lua-sec
liblua5.1-soap-dev - Transitional package for lua-soap
liblua5.1-soap0 - Transitional package for lua-soap
liblua5.1-socket-dev - Transitional package for lua-socket-dev
liblua5.1-socket2 - Transitional package for lua-socket
liblua5.1-sql-mysql-2 - Transitional package for lua-sql-mysql
liblua5.1-sql-mysql-dev - Transitional package for lua-sql-mysql-dev
liblua5.1-sql-postgres-2 - Transitional package for lua-sql-postgres
liblua5.1-sql-postgres-dev - Transitional package for lua-sql-postgres-dev
liblua5.1-sql-sqlite3-2 - Transitional package for lua-sql-sqlite3
liblua5.1-sql-sqlite3-dev - Transitional package for lua-sql-sqlite3-dev
liblua5.1-svn-dev - Transitional package for lua-svn-dev
liblua5.1-svn1 - Transitional package for lua-svn
liblua5.1-wsapi-fcgi-1 - Transitional package for lua-wsapi-fcgi
liblua5.1-wsapi-fcgi-dev - Transitional package for lua-wsapi-fcgi-dev
liblua5.1-wsapi1 - Transitional package for lua-wsapi
liblua5.1-xmlrpc-dev - Transitional package for lua-xmlrpc
liblua5.1-xmlrpc0 - Transitional package for lua-xmlrpc
liblua5.1-zip-dev - Transitional package for lua-zip-dev
liblua5.1-zip0 - Transitional package for lua-zip
liblua5.2-0 - Shared library for the Lua interpreter version 5.2
liblua5.2-0-dbg - Debug symbols for the Lua shared library interpreter
liblua5.2-dev - Development files for the Lua language version 5.2
liblua50 - Main interpreter library for the Lua 5.0 programming language
liblua50-dev - Main interpreter library for Lua 5.0: static library and headers
libluabind-dbg - luabind c++ binding for lua: unstripped binaries
libluabind-dev - luabind c++ binding for lua: static library and headers
libluabind-doc - luabind c++ binding for lua: documentation files
libluabind-examples - luabind c++ binding for lua: example files
libluabind0.9.1 - luabind c++ binding for lua: runtime library
libluabridge-ruby - access Lua from Ruby
libluabridge-ruby1.8 - access Lua from Ruby (Ruby 1.8)
libluajit-5.1-2 - Just in time compiler for Lua - library version
libluajit-5.1-common - Just in time compiler for Lua - common files
libluajit-5.1-dev - Just in time compiler for Lua - development files
liblualib50 - Extension library for the Lua 5.0 programming language
liblualib50-dev - Extension library for Lua 5.0: static and headers
libmath-calculus-expression-perl - Algebraic Calculus Tools Expression Class
libmath-calculus-newtonraphson-perl - Algebraic Newton Raphson Implementation
libmatheval-dev - GNU library for evaluating symbolic mathematical expressions (development)
libmatheval1 - GNU library for evaluating symbolic mathematical expressions (runtime)
libmaven-enforcer-plugin-java - Maven build rule execution framework
libmodule-depends-perl - Perl module to identify the dependencies of a distribution
libneedle-extras-ruby1.8 - extra libraries for needle
libooptools-dev - Development files of LoopTools
libosl-dev - library for Shogi playing programs
libosl-doc - library for Shogi playing programs
libosl1 - library for Shogi playing programs
libosl1-dbg - library for Shogi playing programs
libplplot-dev - Scientific plotting library (development files)
libplplot-lua - Scientific plotting library (lua bindings)
libpoker-eval - poker hand evaluator library
libpoker-eval-dev - poker hand evaluator library development files
librg-blast-parser-perl - very fast NCBI BLAST parser - binding for Perl
libroot-tmva-dev - Toolkit for multivariate data analysis - development files
libroot-tmva5.34 - Toolkit for multivariate data analysis
libscalar-defer-perl - module providing lazy evaluation for Perl
libtarantool-dev - high performance key/value storage server
libtarantool1 - high performance key/value storage server
libtarantool1-dbg - high performance key/value storage server
libtarantoolnet1 - high performance key/value storage server
libtarantoolnet1-dbg - high performance key/value storage server
libtarantoolrpl1 - high performance key/value storage server
libtarantoolrpl1-dbg - high performance key/value storage server
libtarantoolsql1 - high performance key/value storage server
libtarantoolsql1-dbg - high performance key/value storage server
libtolua++5.1-dev - Extended tool to integrate C/C++ code with Lua
libtolua-dev - Tool to integrate C/C++ code with Lua - development files
looptools - Integral Evaluator of One-loop Feynman Diagram
love - 2D game development framework based on Lua and OpenGL
love-dbg - 2D game development framework - debugging symbols
love-doc - 2D game development framework - documentation
lua-apr - Apache Portable Runtime library for the Lua language
lua-apr-dev - Lua development files for the Apache Portable Runtime library
lua-bitop - fast bit manipulation library for the Lua language
lua-bitop-dev - fast bit manipulation library devel files for the Lua language
lua-cgi - CGI library for the Lua language
lua-copas - Copas is a dispatcher of concurrent TCP/IP requests
lua-cosmo - Template library for the Lua language
lua-coxpcall - Protected function calls across coroutines for Lua
lua-curl - libcURL bindings for the Lua language version 5.1
lua-curl-dev - libcURL development files for the Lua language
lua-curses - curses library for the Lua language
lua-curses-dev - curses development files for the Lua language
lua-cyrussasl - Cyrus SASL library for the Lua language
lua-cyrussasl-dev - Cyrus SASL development files for the Lua language
lua-dbi-common - DBI library for the Lua language, common files
lua-dbi-mysql - DBI library for the Lua language, MySQL backend
lua-dbi-mysql-dev - DBI library for the Lua language, MySQL development files
lua-dbi-postgresql - DBI library for the Lua language, PostgreSQL backend
lua-dbi-postgresql-dev - DBI library for the Lua language, PostgreSQL development files
lua-dbi-sqlite3 - DBI library for the Lua language, sqlite3 backend
lua-dbi-sqlite3-dev - DBI library for the Lua language, sqlite3 development files
lua-doc - Documentation generator for lua
lua-event - asynchronous event notification library for Lua
lua-event-dev - libevent development files for the Lua language
lua-expat - libexpat bindings for the Lua language
lua-expat-dev - libexpat development files for the Lua language
lua-filesystem - luafilesystem library for the Lua language
lua-filesystem-dev - luafilesystem development files for the Lua language
lua-iconv - iconv bindings for the Lua programming language
lua-iconv-dev - iconv bindings for Lua - development files
lua-json - JSON decoder/encoder for Lua
lua-ldap - LDAP library for the Lua language
lua-ldap-dev - LDAP development files for the Lua language
lua-leg - Lua 5.1 grammar, with parsing and manipulation facilities
lua-leg-dev - Leg development files for the Lua language
lua-lgi - Lua bridge to GObject based libraries
lua-lgi-dbg - Lua bridge to GObject based libraries
lua-lgi-dev - lgi development files for the Lua language
lua-logging - Logging library for the Lua language
lua-lpeg - LPeg library for the Lua language
lua-lpeg-dev - LPeg development files for the Lua language
lua-markdown - Pure Lua 5.1 implementation of the Markdown text-to-html markup
lua-md5 - MD5 library for the Lua language
lua-md5-dev - MD5 library for the Lua language
lua-mode - Emacs mode for editing Lua programs
lua-orbit - MVC web framework for Lua
lua-penlight - Collection of general purpose libraries for the Lua language
lua-penlight-dev - Collection of general purpose libraries for the Lua language
lua-posix - posix library for the Lua language
lua-posix-dev - posix development files for the Lua language
lua-rex-doc - documentation of the rex library for the Lua language
lua-rex-onig - Onig regular expressions library for the Lua language
lua-rex-onig-dev - Onig regex development files for the Lua language
lua-rex-pcre - Perl regular expressions library for the Lua language
lua-rex-pcre-dev - PCRE development files for the Lua language
lua-rex-posix - POSIX regular expressions library for the Lua language
lua-rex-posix-dev - POSIX regex development files for the Lua language
lua-rex-tre - TRE regular expressions library for the Lua language
lua-rex-tre-dev - TRE development files for the Lua language
lua-rings - Lua state creation and control library for the Lua language
lua-rings-dev - Development files for the rings library for the Lua language
lua-sec - SSL socket library for the Lua language
lua-sec-dev - SSL socket library library devel files for the Lua language
lua-soap - SOAP library for the Lua language
lua-socket - TCP/UDP socket library for the Lua language
lua-socket-dev - TCP/UDP socket library for the Lua language
lua-sql-doc - luasql documentation
lua-sql-mysql - luasql library for the Lua language
lua-sql-mysql-dev - luasql development files for the Lua language
lua-sql-postgres - luasql library for the Lua language
lua-sql-postgres-dev - luasql development files for the Lua language
lua-sql-sqlite3 - luasql library for the Lua language
lua-sql-sqlite3-dev - luasql development files for the Lua language
lua-svn - Subversion library for the Lua language
lua-svn-dev - Development files for the Subversion library for the Lua language
lua-wsapi - Web server API abstraction layer for the Lua language
lua-wsapi-doc - wsapi documentation files for the Lua language
lua-wsapi-fcgi - Web server API fastcgi backend
lua-wsapi-fcgi-dev - wsapi fastcgi development files for the Lua language
lua-xmlrpc - xmlrpc library for the Lua language
lua-zip - zip library for the Lua language
lua-zip-dev - zip development files for the Lua language
lua-zlib - zlib library for the Lua language
lua-zlib-dev - zlib development files for the Lua language
lua5.1-policy - Lua 5.1 Debian policy
lua5.1-policy-dev - Lua 5.1 Debian policy - template and scripts
lua5.2 - Simple, extensible, embeddable programming language
lua5.2-doc - Documentation for the Lua language version 5.2
luadoc - Documentation generation library for the Lua language
luajit - Just in time compiler for Lua programming language version 5.1
luakit - A fast and small web browser extensible by Lua
luarocks - deployment and management system for Lua modules
luasseq - LuaLaTeX package for drawing spectral sequences.
minlog - Proof assistant based on first order natural deduction calculus
monotone-extras - Distributed version (revision) control system - extras
mudlet - Graphical MUD client with fast lua scripting support
mysql-proxy - high availability, load balancing and query modification for mysql
netsend - a speedy filetransfer and network diagnostic program
nginx-extras - nginx web/proxy server (extended version)
nwchem - High-performance computational chemistry software
openocd - Open on-chip JTAG debug solution for ARM and MIPS systems
pandoc - general markup converter
parrot - virtual machine for dynamic languages
pd-libdir - provides support for the libdir library format for Pd
pdns-backend-lua - lua backend for PowerDNS
perl-depends - roughly find out module depends from a perl file
perlconsole - small program that lets you evaluate Perl code interactively
php-horde-constraint - Horde Constraint library
php5-xdebug - Xdebug Module for PHP 5
phyml - Phylogenetic estimation using Maximum Likelihood
plink - whole-genome association analysis toolset
postgresql-9.1-pllua - Lua procedural language for PostgreSQL 9.1
prover9 - theorem prover and countermodel generator
puredata-extra - realtime computer music and graphics system - extra files
python-cubictemp - small, elegant, Python-specific HTML templating system
python-dolfin - Python interface for DOLFIN
python-ferari - optimizations for evaluation of variational forms
python-ffc - compiler for finite element variational forms
python-gamera - framework for building document analysis applications
python-hamcrest - Hamcrest framework for matcher objects
python-joblib - tools to provide lightweight pipelining in Python
python-jsonpipe - Convert JSON to a UNIX-friendly line-based format
python-lazyarray - Python module providing a NumPy-compatible lazily-evaluated array
python-libipa-hbac - Python bindings for the FreeIPA HBAC Evaluator library
python-lua - library for using lua scripts from python
python-mlpy - high-performance Python package for predictive modeling
python-mlpy-doc - documention and examples for mlpy
python-numexpr - Fast numerical array expression evaluator for Python and NumPy
python-numexpr-dbg - Fast numerical array expression evaluator for Python and NumPy (debug ext)
python-pypoker-eval - python interface to poker hand evaluator library development files
python-sesame - Python wrapper for Sesame's REST HTTP API
python-ufc - Python utilities (templates) for generating UFC code
python-uncertainties - Python module for calculations with uncertainties
r-cran-diagnosismed - medical diagnostic test accuracy analysis toolkit
r-cran-foreach - GNU R foreach looping support
r-cran-rcpp - GNU R package for Seamless R and C++ Integration
r-cran-spc - GNU R Statistical Process Control
remote-tty - multiuser "tip"/"cu" replacement with logging
root-system - metapackage to install all ROOT packages
root-system-bin - Numerical data analysis framework - general applications
scratchbox2 - Transparent cross compiling environment
screentest - Utility to test the quality of screens
scrotwm - dynamic tiling window manager (transitional package)
sepia - Simple Emacs-Perl InterAction
shake - Testing engine for the Lua language version 5.1
shogun-lua-modular - Large Scale Machine Learning Toolbox
simgrid - Toolkit for scalable simulation of distributed applications
spectrwm - dynamic tiling window manager
sputnik - Extensible wiki
stda - simple tools for data analysis (stda)
stress - A tool to impose load on and stress test a computer system
tarantool - high performance key/value storage server
tarantool-client - high performance key/value storage server
tarantool-client-dbg - high performance key/value storage server
tarantool-common - high performance key/value storage server
tarantool-dbg - high performance key/value storage server
tclthread - Tcl extension implementing script level access to Tcl threading capabilities
tclxml - Tcl library for XML parsing
tclxml-dev - Tcl library for XML parsing - development files
tdiary-contrib - Plugins of tDiary to add functionalities
termit - Simple terminal emulator based on vte library, embedded lua
tesseract-ocr-afr - tesseract-ocr language files for Afrikaans
tesseract-ocr-ara - tesseract-ocr language files for Arabic
tesseract-ocr-aze - tesseract-ocr language files for Azerbaijani
tesseract-ocr-bel - tesseract-ocr language files for Belarusian
tesseract-ocr-ben - tesseract-ocr language files for Bengali
tesseract-ocr-bul - tesseract-ocr language files for Bulgarian
tesseract-ocr-cat - tesseract-ocr language files for Catalan
tesseract-ocr-ces - tesseract-ocr language files for Czech
tesseract-ocr-chi-sim - tesseract-ocr language files for Simplified Chinese
tesseract-ocr-chi-tra - tesseract-ocr language files for Traditional Chinese
tesseract-ocr-chr - tesseract-ocr language files for Cherokee
tesseract-ocr-dan - tesseract-ocr language files for Danish
tesseract-ocr-deu - tesseract-ocr language files for German
tesseract-ocr-deu-frak - tesseract-ocr language files for German Fraktur
tesseract-ocr-ell - tesseract-ocr language files for Greek
tesseract-ocr-eng - tesseract-ocr language files for English
tesseract-ocr-enm - tesseract-ocr language files for Middle English
tesseract-ocr-epo - tesseract-ocr language files for Esperanto
tesseract-ocr-equ - tesseract-ocr language files for equations
tesseract-ocr-est - tesseract-ocr language files for Estonian
tesseract-ocr-eus - tesseract-ocr language files for Basque
tesseract-ocr-fin - tesseract-ocr language files for Finnish
tesseract-ocr-fra - tesseract-ocr language files for French
tesseract-ocr-frk - tesseract-ocr language files for Frankish
tesseract-ocr-frm - tesseract-ocr language files for Middle French
tesseract-ocr-glg - tesseract-ocr language files for Galician
tesseract-ocr-heb - tesseract-ocr language files for Hebrew
tesseract-ocr-hin - tesseract-ocr language files for Hindi
tesseract-ocr-hrv - tesseract-ocr language files for Croatian
tesseract-ocr-hun - tesseract-ocr language files for Hungarian
tesseract-ocr-ind - tesseract-ocr language files for Indonesian
tesseract-ocr-isl - tesseract-ocr language files for Icelandic
tesseract-ocr-ita - tesseract-ocr language files for Italian
tesseract-ocr-ita-old - tesseract-ocr language files for Old Italian
tesseract-ocr-jpn - tesseract-ocr language files for Japanese
tesseract-ocr-kan - tesseract-ocr language files for Kannada
tesseract-ocr-kor - tesseract-ocr language files for Korean
tesseract-ocr-lav - tesseract-ocr language files for Latvian
tesseract-ocr-lit - tesseract-ocr language files for Lithuanian
tesseract-ocr-mal - tesseract-ocr language files for Malayalam
tesseract-ocr-mkd - tesseract-ocr language files for Macedonian
tesseract-ocr-mlt - tesseract-ocr language files for Maltese
tesseract-ocr-msa - tesseract-ocr language files for Malay
tesseract-ocr-nld - tesseract-ocr language files for Dutch
tesseract-ocr-nor - tesseract-ocr language files for Norwegian
tesseract-ocr-osd - tesseract-ocr language files for script and orientation
tesseract-ocr-pol - tesseract-ocr language files for Polish
tesseract-ocr-por - tesseract-ocr language files for Portuguese
tesseract-ocr-ron - tesseract-ocr language files for Romanain
tesseract-ocr-rus - tesseract-ocr language files for Russian
tesseract-ocr-slk - tesseract-ocr language files for Slovak
tesseract-ocr-slk-frak - tesseract-ocr language files for Slovak Fractur
tesseract-ocr-slv - tesseract-ocr language files for Slovenian
tesseract-ocr-spa - tesseract-ocr language files for Spanish
tesseract-ocr-spa-old - tesseract-ocr language files for Old Spanish
tesseract-ocr-sqi - tesseract-ocr language files for Albanian
tesseract-ocr-srp - tesseract-ocr language files for Serbian
tesseract-ocr-swa - tesseract-ocr language files for Swahili
tesseract-ocr-swe - tesseract-ocr language files for Swedish
tesseract-ocr-tam - tesseract-ocr language files for Tamil
tesseract-ocr-tel - tesseract-ocr language files for Telugu
tesseract-ocr-tgl - tesseract-ocr language files for Tagalog
tesseract-ocr-tha - tesseract-ocr language files for Thai
tesseract-ocr-tur - tesseract-ocr language files for Turkish
tesseract-ocr-ukr - tesseract-ocr language files for Ukranian
tesseract-ocr-vie - tesseract-ocr language files for Vietnamese
texlive-fonts-extra - TeX Live: Extra fonts
texlive-generic-extra - TeX Live: Extra generic packages
texlive-lang-cjk - TeX Live: Chinese, Japanese, Korean
texworks-scripting-lua - Plugin to bring Lua scripting to TeXworks
tinyscheme - Very small scheme implementation
ufc - unified code generation interface for form-compilers
ufc-doc - documentation for UFC
ulatencyd - Daemon to minimize latency on a linux system using cgroups
unknown-horizons - 2D realtime strategy simulation
uwsgi-app-integration-plugins - plugins for integration of uWSGI and application
uwsgi-plugin-lua5.1 - Lua WSAPI plugin for uWSGI (Lua 5.1)
vim-athena - Vi IMproved - enhanced vi editor - with Athena GUI
vim-gtk - Vi IMproved - enhanced vi editor - with GTK2 GUI
vim-nox - Vi IMproved - enhanced vi editor
vistrails - Science visualisation workflow toolkit
vlc-data - Common data for VLC
weechat - Fast, light and extensible chat client
weechat-curses - Fast, light and extensible chat client - console client
weechat-plugins - Fast, light and extensible chat client - plugins
wesnoth-1.10-aoi - "An Orcish Incursion" official campaign for Wesnoth (branch 1.10)
wireshark-doc - network traffic analyzer - documentation
wmnut - WindowMaker dock app that displays UPS statistics from NUT's upsd
xavante - Lua HTTP 1.1 Web server
zoem - general-purpose macro/programming language for transforming text
codelite - Мощная и нетребовательная к ресурсам интегрированная среда разработки на C/C++
codelite-plugins - Мощная и нетребовательная к ресурсам интегрированная среда разработки на C/C++ — плагины
conky - полностью настраиваемый системный монитор (переходный пакет)
conky-cli - highly configurable system monitor (basic version)
context - мощная надстройка над TeX
elinks - улучшенный текстовый веб-браузер
elinks-data - улучшенный текстовый веб-браузер — файлы данных
elinks-doc - улучшенный текстовый веб-браузер — документация
ent - Программа для тестирования последовательностей псевдослучайных чисел
geany-plugin-lua - Lua scripting plugin for Geany
infon-server - Программируйте букашек для состязания за пищевые ресурсы и выживание — сервер
infon-viewer - Программируйте букашек для состязания за пищевые ресурсы и выживание — графический интерфейс
libmathlib2-dev - CERNLIB data analysis suite - core mathematical library (development files)
libmathlib2-gfortran - CERNLIB data analysis suite - core mathematical library
libtaoframework-lua-cil-dev - Tao CLI binding for Lua - development files
libtaoframework-lua5.1-cil - Tao CLI binding for Lua
lighttpd-mod-cml - Cache meta language module for lighttpd
lua50 - маленький встраиваемый язык с простым процедурным синтаксисом
lua50-doc - Документация по языку программирования Lua 5.0
prosody - легковесный сервер Jabber/XMPP, написанный на Lua
drjava - Lightweight programming environment for Java
jvgs - minimalistic platform game
jvgs-data - minimalistic platform game - data
24.01.2014 04:35 · отредактировано #362101

ПОП, выполните
[console]sudo apt-get install lua5.2
sudo apt-get install lua5.1[/console]

Когда установится
[console]find /usr/bin/lua*[/console]

24.01.2014 04:37 #362102
"xxblx" написал:
Так что, для начала, установите Lua 5.1 из репозитория.

В том-то и дело, что не понял какой именно пакет устанавливать, вот и решил из исходника поставить.

24.01.2014 04:38 #362103

ПОП, я предыдущее сообщение свое обновил. У вас и lua5.2, судя по выводу из терминала, в репозитории есть.
Выполните команды из предыдущего моего сообщения.

24.01.2014 04:55 #362105
text
sudo apt-get install lua5.2

Установил. Теперь понять не могу, что дальше делать: то ли wxWidgets-3.0.0 собирать, то ли...

text
find /usr/bin/lua*
/usr/bin/lua
/usr/bin/lua5.2
/usr/bin/luac
/usr/bin/luac5.2
24.01.2014 05:07 · отредактировано #362106
"ПОП" написал:
Установил
"ПОП" написал:
/usr/bin/lua /usr/bin/lua5.2

Отлично. Тогда сразу условимся, вдруг я потом забуду.
wxLua будет собираться под Lua5.2, раз она есть и установлена.

В шапке темы написано про запуск
[console]lua main.lua[/console]
Но у вас будет
[console]lua5.2 main.lua[/console]
У вас lua5.1 идет под просто lua, а lua5.2 = lua5.2. У меня, например, наоборот lua = lua5.2, а lua5.1 = lua5.1 =)

"ПОП" написал:
что дальше делать: то ли wxWidgets-3.0.0 собирать, то ли...

Собрать надо только wxLua. wxWidgets у вас есть в репозитории, он устанавливается как libwxgtk.

Установите пакеты libwxgtk2.8-0, libwxgtk2.8-dbg, libwxgtk2.8-dev, gcc, make, cmake, liblua5.2-dev, liblua5.1-0-dev.
Затем, см. 1-ое сообщение темы, т.н. шапку топика, там с самом конце есть спойлер, откройте его там инструкция по сборке wxLua. Когда все сделаете, можно и программу будет запускать.

24.01.2014 05:40 #362109
text
cmake -DwxLua_LUA_LIBRARY_VERSION=5.2 .

-- * WARNING: Specified wxLuaBinding lib 'propgrid' in variable wxLuaBind_COMPONENTS is missing from wxWidgets_COMPONENTS so it will not be compiled.
-- * wxLua using built-in Lua 5.2 library
-- * WARNING: cppcheck NOT found, NOT generating ADD_CPPCHECK_TEST() tests
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
-- * WARNING: Doxygen NOT found, wxLua_doxygen target will not be generated.
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
-- * WARNING: Doxygen NOT found, wxStEdit_doxygen target will not be generated.
-- Configuring done
-- Generating done
text
sudo apt-get install doxygen cppcheck
text
НОВЫЕ пакеты, которые будут установлены:
  cppcheck doxygen doxygen-latex latex-beamer latex-xcolor libgraphite3 libptexenc1 libruby1.9.1
  libtinyxml2.6.2 libyaml-0-2 lmodern luatex pgf preview-latex-style prosper ps2eps ruby ruby1.9.1
  tcl8.4 tex-common tex-gyre texlive-base texlive-binaries texlive-common texlive-doc-base
  texlive-extra-utils texlive-font-utils texlive-fonts-recommended texlive-fonts-recommended-doc
  texlive-generic-recommended texlive-latex-base texlive-latex-base-doc texlive-latex-extra
  texlive-latex-extra-doc texlive-latex-recommended texlive-latex-recommended-doc texlive-luatex
  texlive-pictures texlive-pictures-doc texlive-pstricks texlive-pstricks-doc tipa tk8.4
  ttf-marvosym
обновлено 0, установлено 44 новых пакетов, для удаления отмечено 0 пакетов, и 4 пакетов не обновлено.
Необходимо скачать 632 MБ архивов.

Не перебор?

24.01.2014 07:45 · отредактировано #362113
"ПОП" написал:
Не перебор?

Да, что-то у вас очень много зависимостями тянет с cppcheck и doxygen. У меня в Mageia не так много насчитало.

Cppcheck у меня у самого отсутствует, я без него собирал, прекрасно собралось. Вам wxStEdit_doxygen все равно не нужен будет, так что можно и без doxygen продолжить.

В прицнипе, написало

"ПОП" написал:
-- Configuring done
-- Generating done

Т.е. make-файл уже сгенерирован. Значит, жизненно важные компоненты уже присутствуют.

На cppcheck и doxygen плюньте, переходите к следующему шагу - make.

24.01.2014 07:58 #362114
text
make
text
/usr/bin/ld: cannot find -lncurses
collect2: ошибка: выполнение ld завершилось с кодом возврата 1
make[2]: *** [lib/Debug/libwxlua_lua52-wxgtk2ud-2.8.12.3.so] Ошибка 1
make[1]: *** [modules/lua-5.2/CMakeFiles/LuaLib.dir/all] Ошибка 2
make: *** [all] Ошибка 2
24.01.2014 08:08 · отредактировано #362115

ПОП, установите пакет libncurses5 (и возможно потребуется libncurses5-dev, не уверен).
После снова запускайте make.

24.01.2014 08:36 #362117
"xxblx" написал:
ПОП, установите пакет libncurses5 (и возможно потребуется libncurses5-dev, не уверен).
После снова запускайте make.

libncurses5 был установлен, а libncurses5-dev - нет; установил, собрал.

"xxblx" написал:
По окончанию сборки в ~/wxLua/wxLua-2.8.12.3-src/bin/lib/Debug появятся собранные библиотеки wxLua

[xxblx@localhost Debug]$ ls
libwxlua_bind-wx28gtk2ud-2.8.12.3.so* libwxlua-wx28gtk2ud-2.8.12.3.so*
libwxlua_debugger-wx28gtk2ud-2.8.12.3.so* libwx.so*
libwxlua_debug-wx28gtk2ud-2.8.12.3.so* libwxstedit-wx28gtk2ud-1.6.0.so*
libwxlua_lua52-wx28gtk2ud-2.8.12.3.so*

Сразу нужно переименовать в libwx.so в wx.so.

text
~/software/source/wxLua-2.8.12.3-src/bin/Debug $ ls
lua  luac  Resources  wxLua  wxLuaCan  wxLuaEdit  wxLuaFreeze  wxStEdit
text
~/software/source/wxLua-2.8.12.3-src/lib/Debug $ ls
libwxlua_bind-wxgtk2ud-2.8.12.3.so      libwxlua-wxgtk2ud-2.8.12.3.so
libwxlua_debugger-wxgtk2ud-2.8.12.3.so  libwx.so
libwxlua_debug-wxgtk2ud-2.8.12.3.so     libwxstedit-wxgtk2ud-1.6.0.so
libwxlua_lua52-wxgtk2ud-2.8.12.3.so

С переименованием поясните, пожалуйста, а то у меня уже перегрев %)

24.01.2014 08:47 · отредактировано #362119
"ПОП" написал:
С переименованием поясните, пожалуйста

В wxLua-2.8.12.3-src/lib/Debug у вас несколько файлов, в том числе "libwx.so". Его нужно переименовать в "wx.so".

И еще, покажите, пожалуйста
[console]lua5.2
> print(package.cpath)[/console]

Чтобы я вам сразу точно сказал в какой каталог нужно скопировать содержимое wxLua-2.8.12.3-src/lib/Debug.

"ПОП" написал:
а то у меня уже перегрев

Я вас так понимаю (с)
Времени уже почти 9 утра, а спать-то я еще так и не ложился %)

24.01.2014 08:57 #362120
"xxblx" написал:
установите пакет libncurses5 (и возможно потребуется libncurses5-dev, не уверен

Пакеты *-{dev,devel} всегда нужны при сборке. В Slackware пакеты крупные, содержащие в себе все - бинарники, документацию, заголовочные и другие файлы. Пакетов с исходниками как таковых нет (кроме kernel-{headers,source}). Поэтому для сборки зависимости чего-либо нужен один пакет с этой зависимостью, и в результате сборки будет получен один пакет с одной программой с ее файлами. В debian- и redhat-based дистрибутивах пакеты дробятся на пакеты с бинарниками, документацией, часто локализациями, пакеты для разработчиков и т.д. Это, с одной стороны, позволяет уменьшить размер работающей инсталляции, но с другой - сильно усложняет сборку и обслуживание установленной системы. Поэтому были придуманы все эти apt*, {,u}rpm* и прочее. Они как бы работают, но далеко не всегда принимают наиболее оптимальные решения.

24.01.2014 09:01 #362125
"xxblx" написал:
В wxLua-2.8.12.3-src/lib/Debug у вас несколько файлов, в том числе "libwx.so". Его нужно переименовать в "wx.so"

Остальные не трогать?

text
lua
Lua 5.2.1  Copyright (C) 1994-2012 Lua.org, PUC-Rio
> print(package.cpath)
/usr/local/lib/lua/5.2/?.so;/usr/lib/i386-linux-gnu/lua/5.2/?.so;/usr/lib/lua/5.2/?.so;/usr/local/lib/lua/5.2/loadall.so;./?.so
24.01.2014 09:04 #362128
"yars" написал:
Пакеты *-{dev,devel} всегда нужны при сборке.

Это помню, только меня сбило с толку

text
/usr/bin/ld: cannot find -lncurses

За инфу, спасибо.

24.01.2014 09:07 #362129
"xxblx" написал:
Я вас так понимаю (с)
Времени уже почти 9 утра, а спать-то я еще так и не ложился

Да, у нас уже 12-й час...

24.01.2014 09:17 · отредактировано #362135

yars, я знаю. У меня у самого-то весь "джентельменский devel-сет" в системе с момента ее установки всегда присутствует, мне много собирать из исходников приходится.
Меня смутило

text
/usr/bin/ld: cannot find -lncurses

Ночь не спал, тупанул :) Не сразу сообразил, что он не саму либу ищет. Даже в хелпе ld, емнип, как раз написано -l LIBNAME =)

"ПОП" написал:
Остальные не трогать?

Нет, переименовать только libwx.so в wx.so. Остальные файлы переименовывать не надо.

Проверьте, есть ли у вас каталог /usr/local/lib/lua/5.2/
[console]find /usr/local/lib/lua/5.2/[/console]
Если есть - выдаст каталог и вложенные каталоги/файлы, если нет - выдаст нет такого файла или каталога.

Если окажется, что каталога нет - создайте
[console]sudo mkdir -p /usr/local/lib/lua/5.2/[/console]

Дальше нужно скопировать библиотеки wxlua, которые вы собрали в /usr/local/lib/lua/5.2/
[console]sudo cp -r ~/software/source/wxLua-2.8.12.3-src/lib/Debug/* /usr/local/lib/lua/5.2/[/console]

Войдите или зарегистрируйтесь, чтобы ответить.