Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
huangjimmy committed Sep 27, 2024
1 parent 20436cc commit 7524255
Show file tree
Hide file tree
Showing 2 changed files with 86 additions and 1 deletion.
37 changes: 36 additions & 1 deletion _posts/2024-09-21-macports-2.10-gnucash-ports-failure.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ and use below command to install GnuCash in macOS 15.0 by macports 2.10
sudo port install gnucash build_arch=x86_64 configure.cflags="-Wno-error=int-conversion -Wno-error=incompatible-function-pointer-types -Wimplicit-function-declaration -Wno-error=implicit-function-declaration"
```

You may also need to manually install netpbm and libvpx, gstreamer1-gst-plugins-bad and ~~libgcc14~~. Check below content for details.
You may also need to manually install netpbm and libvpx, rarian, gstreamer1-gst-plugins-bad and ~~libgcc14~~. Check below content for details.

To manually install, gstreamer1-gst-plugins-bad

Expand Down Expand Up @@ -318,3 +318,38 @@ and tried again this morning installing libgcc14 and I found macports installing
```
Now problem is solved for libgcc14.
I have to manually install rarian with `-std=gnu89`
```bash
sudo port clean rarian && sudo port install rarian build_arch=x86_64 configure.cflags="-Wno-error=int-conversion -Wno-error=incompatible-function-pointer-types -Wimplicit-function-declaration -std=gnu89 -Wno-error=implicit-function-declaration"
```
Finally, we need to make python311 default because all GnuCash python bindings are under python311
```bash
sudo port select --set python python312
sudo port select --set python3 python312
```
There are no GnuCash python bindings under python312
```bash
% python
Python 3.12.6 (main, Sep 7 2024, 05:15:33) [Clang 16.0.0 (clang-1600.0.26.3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import gnucash
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'gnucash'
```
These bindings are available under python311
```bash
% python
Python 3.11.10 (main, Sep 7 2024, 05:47:53) [Clang 16.0.0 (clang-1600.0.26.3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import gnucash
>>>
```
50 changes: 50 additions & 0 deletions _posts/2024-09-22-require-a-full-xcode-installation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
---
layout: page_with_comment
title: "Solve a prolem: openjdk20 requires a full Xcode installation, which was not found on your system"
date: "2024-09-22"
tags:
- "openjdk"
- "xcode"
- "macports"
---

I want to install openjdk via macports on macOS 15 Sequoia but got below error message.

```bash
% sudo port install openjdk20
Password:
Error: Port openjdk20 requires a full Xcode installation, which was not found on your system.
Error: You can install Xcode from the Mac App Store or https://developer.apple.com/xcode/
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.
Error: Processing of port openjdk20 failed
```

However, I already have XCode installed.

I then check

```bash
% xcode-select -p
/Library/Developer/CommandLineTools
```

and use `xcode-select` like below and solve this problem.

```bash
% sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
% sudo port install openjdk20 openjdk22 openjdk23 openjdk17
---> Computing dependencies for openjdk20
The following dependencies will be installed:
autoconf
bash
brotli
cctools
cmake-bootstrap
freetype
gmake
libpng
lzip
m4
openjdk20-bootstrap
Continue? [Y/n]: y
```

0 comments on commit 7524255

Please sign in to comment.