当前位置: 首页 > article >正文

学习关系型数据库:在MAC下编译安装firebird

Firebird是一种关系型数据库管理系统,它使用SQL(结构化查询语言)进行数据操作。与许多其他数据库系统相比,Firebird以其卓越的性能、稳定性和可扩展性而著称。

尝试在MAC下编译安装firebird

从下载页面下载,选最新的版本:https://sourceforge.net/projects/firebird/files/ 

这里有比较老的一篇mac安装指南:https://www.firebirdsql.org/file/documentation/papers_presentations/html/paper-fb-macosx.html

在MAC下查找

brew search firebird
==> Casks
firebird-emu

 这是一个TI-Nspire仿真器,不是我们需要的数据库。TI-Nspire CX是德州仪器公司于2011年推出的新一代彩屏图形计算器。

到firebird官网下载:https://firebirdsql.org/en/firebird-3-0/

下载源代码:

wget https://github.com/FirebirdSQL/firebird/releases/download/v3.0.12/Firebird-3.0.12.33787-0.tar.bz2
tar -xzvf Firebird-3.0.12.33787-0.tar.bz2

进入目录,编译配置

./configure

如果报错说需要ICU,则安装

brew install icu4c

安装之后提示

icu4c is keg-only, which means it was not symlinked into /usr/local,
because macOS provides libicucore.dylib (but nothing else).

If you need to have icu4c first in your PATH, run:
  echo 'export PATH="/usr/local/opt/icu4c/bin:$PATH"' >> /Users/skywalk/.bash_profile
  echo 'export PATH="/usr/local/opt/icu4c/sbin:$PATH"' >> /Users/skywalk/.bash_profile

For compilers to find icu4c you may need to set:
  export LDFLAGS="-L/usr/local/opt/icu4c/lib"
  export CPPFLAGS="-I/usr/local/opt/icu4c/include"

For pkg-config to find icu4c you may need to set:
  export PKG_CONFIG_PATH="/usr/local/opt/icu4c/lib/pkgconfig"
==> node
Bash completion has been installed to:
  /usr/local/etc/bash_completion.d

按照提示应该输入这两句

  export LDFLAGS="-L/usr/local/opt/icu4c/lib"
  export CPPFLAGS="-I/usr/local/opt/icu4c/include"

export DYLD_LIBRARY_PATH=/path/to/icu/lib:$DYLD_LIBRARY_PATH
 

  export LDFLAGS="/usr/local/opt/icu4c/lib"
  export CPPFLAGS="/usr/local/opt/icu4c/include"

安装libtommath

brew install libtommath

 再次./configure

配置成功,提示

The Firebird3 package has been configured with the following options:

                    Raw devices : disabled

                   Service name : gds_db

                   Service port : 3050

                   GPRE modules : c_cxx.cpp

                    Install Dir : /usr/local/firebird

编译安装

make -j 4

make install

编译失败。先搁置

尝试编译5.0版本

下载编译firebird 5.0版本,没有成功,做了如下操作:

升级cmake

brew install cmake

./configure的时候报错

尝试安装vcpkg

不行。

尝试安装gcc

brew install gcc

不行

sh autogen.sh 试试

checking whether the C compiler works... no

configure: error: in `/Users/skywalk/Downloads/Firebird-5.0.1.1469-0-source':

configure: error: C compiler cannot create executables

尝试失败,先搁置。

尝试在MAC下直接安装firebird

原来firebird有mac的版本啊,直接下载5.0版本

wget https://github.com/FirebirdSQL/firebird/releases/download/v5.0.1/Firebird-5.0.1.1469-0-macos-x64.pkg

下载完成后open

open Firebird-5.0.1.1469-0-macos-x64.pkg 

这样就会打开mac下的安装程序,话说我以前都是用鼠标点的,原来直接命令行用open就行啊!

安装完成,测试一下:

看看服务是否启动了

ps -ax | grep [f]irebird

71891 ??         0:00.13 /Library/Frameworks/Firebird.framework/Versions/A/Resources/bin/firebird

这样证明firebird启动了


http://www.kler.cn/news/290024.html

相关文章:

  • 【iOS】——分类拓展关联对象
  • iOS面试:BAD_ACCESS在什么情况下出现?
  • SQL 语言简明入门:从历史到实践
  • BaseCTF之web(week2)
  • springboot使用swagger生成接口文档
  • 华为 HCIP-Datacom H12-821 题库 (6)
  • Leetcode236经典题目二叉树的最近公共祖先
  • CAD二次开发IFoxCAD框架系列(26)- 分段测量多段线长度和计算多边形的面积
  • CTFHub技能树-备份文件下载-网站源码
  • 一款用于分析java socket连接问题的工具
  • 【蓝桥杯青少组】第十五届省赛python(2024)
  • UE5.3 新学到的一些性能测试合计(曼巴学习笔记)
  • Unet改进10:在不同位置添加CPCA||通道先验卷积注意力机制
  • ARM内存屏障/编译屏障API(__DMB、__DSB、__ISB)用法及举例
  • 基于Spring的Uniapp自动更新实现方法
  • 一篇常见第三方库之以及详细使用示例教程
  • C++第四十五弹---深入理解包装器:提升代码复用性与安全性的利器
  • 浙大数据结构:01-复杂度3 二分查找
  • 一文读懂期权交易规则和操作方法分享
  • gitk无法打开
  • Python将两个Excel文件按相同字段合并到一起
  • gcc编译与Linux下的库
  • k8s dial tcp 10.97.0.1:443: i/o timeout
  • 帮招一名3C大佬机器视觉工程师,工作地:苏州,月薪25K-30K,30岁以下,Halcon独立开发,单休,有管理经验更佳有绩效奖
  • 飞利浦开放式耳机怎么样?飞利浦、西圣、漫步者爆火机型大对决!
  • SprinBoot+Vue宠物领养救助微信小程序的设计与实现
  • 解决firewalld启动状态下docker无法启动
  • AI时代的信仰是什么
  • macbook怎么换自定义壁纸?Mac怎么设置壁纸 macOS中如何轻松删除不需要的壁纸?
  • 86、pod部署策略