Windows平台上的clsql-mysql(Clozure CL)

时间:2018-05-23 02:01:21

标签: mysql common-lisp ccl clsql

我正在尝试在Windows平台上使用clsql-mysql。我使用32位Clozure CL和32位MySQL连接器库(来自Oracle)来提供外部库。

我将连接器的路径添加到%path%,以便clsql可以找到连接器库,并使用

连接到数据库
(clsql:connect '("host" "db" "user" "pw"))

顺便提一下,返回一个<MYSQL_DATABASE>对象。

但是,当我尝试执行简单的SQL查询时,出现以下错误:

;; Query
(clsql:query "select * from logentry where id = 3346;")
;; Error:
`Can't resolve foreign symbol "clsql_mysql_field_flags"`

这可能与mysql连接器的编译方式有关吗?来自MySQL Connector附带的INFO_BIN文件:

    ===== Information about the build process: =====
    Build was run at Thu 07/13/2017 on host 'VITRO50'

    Build was done on  Windows-6.2 using AMD64
    Build was done using cmake 3.2.3 

    ===== Compiler / generator used: =====
    Visual Studio 14 2015

    Pointer size: 4

    ===== Feature flags used: =====
    -- Cache values
    CANDLE_EXECUTABLE:FILEPATH=C:/Program Files (x86)/WiX Toolset v3.10/candle.exe
    CMAKE_CONFIGURATION_TYPES:STRING=DebugReleaseMinSizeRelRelWithDebInfo
    CMAKE_INSTALL_PREFIX:PATH=C:/Program Files (x86)/LibMySQL
    COMMUNITY_BUILD:BOOL=ON
    DEBUG_EXTNAME:BOOL=ON
    ENABLED_PROFILING:BOOL=ON
    ENABLE_DEBUG_SYNC:BOOL=ON
    ENABLE_GCOV:BOOL=OFF
    ENABLE_GPROF:BOOL=OFF
    EXTRA_INSTALL:BOOL=G:\ade\build\sb_0-24199034-1499945748.28/mysql-connector-c-6.1.11-vs12-win32/lib/mysqlclient.liblib/vs12DevelopmentG:\ade\build\sb_0-24199034-1499945748.28/mysql-connector-c-6.1.11-vs12-win32/lib/debug/mysqlclient.liblib/vs12/debugDebugBinariesG:\ade\build\sb_0-24199034-1499945748.28/mysql-connector-c-6.1.11-vs14-win32/lib/mysqlclient.liblib/vs14DevelopmentG:\ade\build\sb_0-24199034-1499945748.28/mysql-connector-c-6.1.11-vs14-win32/lib/debug/mysqlclient.liblib/vs14/debugDebugBinaries
    FEATURE_SET:STRING=community
    HEAT_EXECUTABLE:FILEPATH=C:/Program Files (x86)/WiX Toolset v3.10/heat.exe
    INSTALL_LAYOUT:STRING=STANDALONE
    LIGHT_EXECUTABLE:FILEPATH=C:/Program Files (x86)/WiX Toolset v3.10/light.exe
    MYSQL_DATADIR:PATH=C:/Program Files/MySQL/MySQL Server 6.1/data
    MYSQL_KEYRINGDIR:PATH=C:/Program Files/MySQL/MySQL Server 6.1/keyring
    MYSQL_MAINTAINER_MODE:BOOL=OFF
    PKG_INSTALL_PREFIX:PATH=C:/Program Files (x86)/LibMySQL
    TMPDIR:PATH=
    WIN_DEBUG_NO_INLINE:BOOL=OFF
    WITH_ARCHIVE_STORAGE_ENGINE:BOOL=ON
    WITH_ASAN:BOOL=OFF
    WITH_BLACKHOLE_STORAGE_ENGINE:BOOL=ON
    WITH_CLIENT_PROTOCOL_TRACING:BOOL=ON
    WITH_DEBUG:BOOL=OFF
    WITH_DEFAULT_COMPILER_OPTIONS:BOOL=ON
    WITH_DEFAULT_FEATURE_SET:BOOL=ON
    WITH_EMBEDDED_SERVER:BOOL=ON
    WITH_EXTRA_CHARSETS:STRING=all
    WITH_FEDERATED_STORAGE_ENGINE:BOOL=ON
    WITH_INNOBASE_STORAGE_ENGINE:BOOL=ON
    WITH_MSAN:BOOL=OFF
    WITH_MSCRT_DEBUG:BOOL=OFF
    WITH_NUMA:BOOL=ON
    WITH_PARTITION_STORAGE_ENGINE:BOOL=ON
    WITH_SSL:STRING=bundled
    WITH_TEST_TRACE_PLUGIN:BOOL=OFF
    WITH_UBSAN:BOOL=OFF
    WITH_UNIT_TESTS:BOOL=OFF
    WITH_ZLIB:STRING=bundled
    WIX_DIR:PATH=C:/Program Files (x86)/WiX Toolset v3.10

    ===== EOF =====

我在搜索此错误时遇到的唯一点击是与Ubuntu上的类似问题相关的点击。

如何开始调试此错误,或者如何修复此错误以便SQL查询完成且没有错误?

0 个答案:

没有答案