我真的不知道该怎么做。make
步骤失败:
error: ‘strnlen’ was not declared in this scope
make[2]: *** [storage/connect/CMakeFiles/connect.dir/xobject.cpp.o] Error 1
make[1]: *** [storage/connect/CMakeFiles/connect.dir/all] Error 2
make: *** [all] Error 2
以下是更多的输出:
~/Downloads$ tar xvfz mariadb-10.0.15.tar.gz
…
…
=====BUILD======
~/Downloads/mariadb-10.0.15$ cmake . -DBUILD_CONFIG=mysql_release
-- Running cmake version 3.1.0
-- The C compiler identification is GNU 4.2.1
-- The CXX compiler identification is GNU 4.2.1
-- Checking whether C compiler has -isysroot
-- Checking whether C compiler has -isysroot - yes
-- Checking whether C compiler supports OSX deployment target flag
-- Checking whether C compiler supports OSX deployment target flag - yes
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Checking whether CXX compiler has -isysroot
-- Checking whether CXX compiler has -isysroot - yes
-- Checking whether CXX compiler supports OSX deployment target flag
-- Checking whether CXX compiler supports OSX deployment target flag - yes
...
...
-- Looking for strlcpy
-- Looking for strlcpy - found
-- Looking for strnlen
-- Looking for strnlen - not found
-- Looking for strlcat
-- Looking for strlcat - found
-- Looking for strsignal
-- Looking for strsignal - found
-- Looking for fgetln
-- Looking for fgetln - found
-- Looking for strpbrk
-- Looking for strpbrk - found
-- Looking for strstr
-- Looking for strstr - found
-- Looking for strtok_r
-- Looking for strtok_r - found
-- Looking for strtol
-- Looking for strtol - found
-- Looking for strtoll
-- Looking for strtoll - found
-- Looking for strtoul
-- Looking for strtoul - found
-- Looking for strtoull
-- Looking for strtoull - found
-- Looking for strcasecmp
-- Looking for strcasecmp - found
-- Looking for strncasecmp
-- Looking for strncasecmp - found
-- Looking for strdup
-- Looking for strdup - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for shmctl
-- Looking for shmctl - found
-- Looking for shmdt
-- Looking for shmdt - found
-- Looking for shmget
-- Looking for shmget - found
-- Looking for tell
-- Looking for tell - not found
-- Looking for tempnam
-- Looking for tempnam - found
-- Looking for thr_setconcurrency
-- Looking for thr_setconcurrency - not found
-- Looking for thr_yield
-- Looking for thr_yield - not found
...
...
-- Looking for vasprintf
-- Performing Test HAVE_XUCRED - Success
-- Looking for event.h
-- Looking for event.h - found
-- Configuring done
CMake Warning (dev):
Policy CMP0042 is not set: MACOSX_RPATH is enabled by default. Run "cmake
--help-policy CMP0042" for policy details. Use the cmake_policy command to
set the policy and suppress this warning.
MACOSX_RPATH is not specified for the following targets:
libmysql
libmysqld
This warning is for project developers. Use -Wno-dev to suppress it.
-- Generating done
-- Build files have been written to: /Users/7stud/Downloads/mariadb-10.0.15
========MAKE==========
~/Downloads/mariadb-10.0.15$ make
….
…
...
[ 50%] Building CXX object storage/connect/CMakeFiles/connect.dir/value.cpp.o
cc1plus: warning: command line option "-Wmissing-declarations" is valid for C/ObjC but not for C++
[ 50%] Building CXX object storage/connect/CMakeFiles/connect.dir/xindex.cpp.o
cc1plus: warning: command line option "-Wmissing-declarations" is valid for C/ObjC but not for C++
[ 50%] Building CXX object storage/connect/CMakeFiles/connect.dir/xobject.cpp.o
cc1plus: warning: command line option "-Wmissing-declarations" is valid for C/ObjC but not for C++
/Users/7stud/Downloads/mariadb-10.0.15/storage/connect/xobject.cpp: In member function ‘bool STRING::Set(char*, uint)’:
/Users/7stud/Downloads/mariadb-10.0.15/storage/connect/xobject.cpp:275: error: ‘strnlen’ was not declared in this scope
make[2]: *** [storage/connect/CMakeFiles/connect.dir/xobject.cpp.o] Error 1
make[1]: *** [storage/connect/CMakeFiles/connect.dir/all] Error 2
make: *** [all] Error 2
~/Downloads/mariadb-10.0.15$ gcc --version
i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
接下来,用自制的:
==>修补==>使所有cc=gcc-4.2 cflags=/users/7stud/.homebrew/cellar/pidof/0.1.4:3个文件,24K,3秒内生成==>安装mariadb==>下载http://ftp.osuosl.org/pub/mariadb/mariadb-10.0.15/source/mariadb-10.0.15.tar.gz
阅读以下内容:http://git.io/brew-疑难解答
这些未解决的问题也可能有所帮助:MySQL-Connector-C++无法使用mariadb(https://github.com/homebrew/homebrew/issues/34578)包构建,mariadb(https://github.com/homebrew/homebrew/issues/32973)不满足--with-Mysql选项,mariadb:missing/usr/local/etc/my.cnf.d,由brew prune(https://github.com/homebrew/issues/31760)~$删除
你能试试这个吗:
brew update
brew doctor
brew install mariadb
参考https://mariadb.com/kb/en/mariadb/building-mariadb-on-mac-os-x-using-homebrew/
问题内容: 我正在使用Linux Ubuntu 18.04和python3。我正在尝试在maria- db和我的python脚本之间建立连接。因此,我必须安装mariadb软件包。 我已经安装了: 但是当我尝试: 我收到以下错误: 有谁能够帮我 ? 编辑: 现在,我已经可以连接到服务器,但不能使用te mariadb软件包。(https://linuxhint.com/connect_mariad
Gitea 大量使用了 Make 工具来自动执行任务并改进开发,本文将介绍如何安装 Make。 在 Linux 环境下 可以使用包管理工具来安装 Make。 Ubuntu/Debian 环境,执行以下命令: sudo apt-get install make Fedora/RHEL/CentOS,执行以下命令: sudo yum install make 在 Windows 环境下 您可以参照
主要内容:在Windows上安装要在MariaDB数据库中执行任何操作,首先需要安装MariaDB数据库。 如要在Windows操作系统上安装MariaDB数据库,请按照以下步骤进行操作: MariaDB的所有下载位于MariaDB官方网站的下载部分。单击您想要的版本的链接,并显示多个操作系统,体系结构和安装文件类型的下载列表。 在Windows上安装 找到并下载自动安装文件(MSI)后,下载网址:http://download
试图安装卡玛 就会产生警告 最后,似乎没有因果报应 然而,这似乎是一种因果报应 还有builerror.log档案 我需要安装python才能与业力工作还是有其他问题?提前感谢任何帮助!
在设备中运行android,并报告以下错误 正在安装APK的应用程序调试。应用程序:调试10:53:48 E/1765594925:上传应用程序调试时出错。apk:未知故障([CDS]关闭[0])无法安装/Users/xiaotian/Desktop/wanme\u rn/android/app/build/outputs/apk/app debug。apk公司 失败:生成失败,出现异常。 > 通
你好,而试图在真正的Android设备上运行我的Flutter应用程序im得到以下错误 我尝试:更新Android Studioflutter升级flutter酒吧获取...... 但还没有找到解决方案,希望任何人都能帮忙