macports

MacPorts and the bash PATH

泪湿孤枕 提交于 2021-02-18 08:35:43
问题 I am using 10.8.1 (Mountain Lion). After upgrading to Mountain Lion, some of my MacPorts stopped working. For an easier life, I simply cleared out /opt/local/ and reinstalled the latest version of MacPorts, followed by the ports themselves. This has had the side-effect that many of the ports I was using have gone back to their bundled OS X defaults. I opened up .profile to make sure that /opt/local/bin came first in the PATH, but that hasn't solved the problem. I suspect the output of port

Problem to compile a C-program by GCC with GD2 library installed via MacPorts

两盒软妹~` 提交于 2021-02-11 12:50:37
问题 I have successfully compiled a C-program by GCC on Mac with GD2 library installed directly from sources. Now I am trying to do that with GD2 library installed via MacPorts and have the following error message: plotgeometry.c:5:16: error: gd.h: No such file or directory plotgeometry.c: In function 'PlotGeometry': plotgeometry.c:28: error: 'gdImagePtr' undeclared (first use in this function) plotgeometry.c:28: error: (Each undeclared identifier is reported only once plotgeometry.c:28: error:

Problem to compile a C-program by GCC with GD2 library installed via MacPorts

Deadly 提交于 2021-02-11 12:50:08
问题 I have successfully compiled a C-program by GCC on Mac with GD2 library installed directly from sources. Now I am trying to do that with GD2 library installed via MacPorts and have the following error message: plotgeometry.c:5:16: error: gd.h: No such file or directory plotgeometry.c: In function 'PlotGeometry': plotgeometry.c:28: error: 'gdImagePtr' undeclared (first use in this function) plotgeometry.c:28: error: (Each undeclared identifier is reported only once plotgeometry.c:28: error:

Cannot link any C program with gcc on Mac Mojave

风流意气都作罢 提交于 2021-01-06 04:10:33
问题 I've just updated to OSX 10.14.6 (Mojave) and now, after upgrading Xcode and migrating MacPorts, even the simplest C program will not link with any gcc version. For example, linking the program int main() {} gives: dcs16> gcc test.c ld: library not found for -lSystem collect2: error: ld returned 1 exit status I am using gcc 6.5 in /opt/local/bin: dcs16> gcc --version gcc (MacPorts gcc6 6.5.0_4) 6.5.0 The Xcode version is 11.0 and I have installed the package (which was recommended for solving

Cannot link any C program with gcc on Mac Mojave

安稳与你 提交于 2021-01-06 04:09:05
问题 I've just updated to OSX 10.14.6 (Mojave) and now, after upgrading Xcode and migrating MacPorts, even the simplest C program will not link with any gcc version. For example, linking the program int main() {} gives: dcs16> gcc test.c ld: library not found for -lSystem collect2: error: ld returned 1 exit status I am using gcc 6.5 in /opt/local/bin: dcs16> gcc --version gcc (MacPorts gcc6 6.5.0_4) 6.5.0 The Xcode version is 11.0 and I have installed the package (which was recommended for solving

Cannot link any C program with gcc on Mac Mojave

ε祈祈猫儿з 提交于 2021-01-06 04:06:20
问题 I've just updated to OSX 10.14.6 (Mojave) and now, after upgrading Xcode and migrating MacPorts, even the simplest C program will not link with any gcc version. For example, linking the program int main() {} gives: dcs16> gcc test.c ld: library not found for -lSystem collect2: error: ld returned 1 exit status I am using gcc 6.5 in /opt/local/bin: dcs16> gcc --version gcc (MacPorts gcc6 6.5.0_4) 6.5.0 The Xcode version is 11.0 and I have installed the package (which was recommended for solving

我为什么从macOS迁移到FreeBSD?

浪尽此生 提交于 2021-01-03 11:23:09
Python实战社群 Java实战社群 长按识别下方二维码, 按需求添加 扫码关注添加客服 进Python社群▲ 扫码关注添加客服 进Java社群 ▲ 作者 | antranigv 译者 | 张健欣 策划 | 万佳 来源公众号丨InfoQ(ID:infoqchina) 本文不是一篇如何从 macOS 迁移到 FreeBSD 的技术文档。而是从较高的层次,解释我为什么要从 macOS 迁移到 FreeBSD。 不久前,macOS 还是我的日常工作必备之一。我购买了一台 macbook 笔记本,原因是底层的 BSD Unix 和它漂亮的图形界面。另外,我还有一个 iPhone 手机。但是,我放弃 macOS 也是因为这些相同的原因。 我不想在迁移后马下就写这篇文章。我想慢慢来,每天使用 FreeBSD,看看我是否会怀念 macOS。 这是我 8 个月前的一个推文: 1macOS 的槽点 我们可以这样看。macOS 每年都变得越来越没有 Unix 风格, date(1) 已经过时,在系统启动时,有 100 多 Unix 进程运行,其中大部分对于普通用户是没用的,它没有本地的包管理器(至少还有 MacPorts/homebrew/pkgsrc),而对于一个高级用户,没有合适的文档。你看过 FreeBSD 的手册吗?所有的东西都在里面写得很清楚! 关于漂亮的图形界面部分。你看过最新最棒的

内存压测神器:memtester深度指南

给你一囗甜甜゛ 提交于 2020-10-01 12:31:30
1.前言 本文接上篇 烧脑神器cpuburn ,继续介绍监控告警的资源场景构造。 如何构造内存使用率过多的场景? 有两个方法: 1. 自己写代码弄个小工具,不断地去allocate_memory。 2. 用现成的工具:比如马上要介绍这款内存测试工具: memtester。 2.简介 简介:A userspace utility for testing the memory subsystem for faults. It's portable and should compile and work on any 32- or 64-bit Unix-like system. (Yes, even weird, proprietary Unices, and even Mac OS X.) For hardware developers, memtester can be told to test memory starting at a particular physical address as of memtester version 4.1.0. 翻译:一款在用户空间下,用于 测试内存正确性 的实用工具,适用于大多数平台。可以在32位或64位的类Unix操作系统编译和运行(当然也包括MacOs)。这款工具主要面向硬件开发人员,从4.1.0版本开始

How do I specify the linker when building python extensions?

半城伤御伤魂 提交于 2020-06-27 09:30:55
问题 I have python2.7 installed using macports gcc-4.6. When I build an extension module (python setup.py build_ext) the correct gcc (/opt/local/bin/gcc) gets called but the wrong linker (it call /Developer/usr/bin/clang). Is there a way to override the call that python is linking with? 回答1: You can customize the linker used with LDSHARED environment variable: LDSHARED=/usr/bin/ld python setup.py build_ext 来源: https://stackoverflow.com/questions/9369827/how-do-i-specify-the-linker-when-building

No such module psutil, even though psutil is installed

亡梦爱人 提交于 2020-05-14 13:00:06
问题 I am on OS X El Capitan. I want to import psutil for a python script, but get module psutil not found . If I do pip install psutil I get psutil already installed. How is this possible that I have psutil installed, but it does not find it in the script? I am using both macports and homebrew to install several python packages. Maybe this is a problem? Any ideas how I can get psutil to import? I have python27 and python34 on my system. For this project I need to use python27. This is my log for