libyal / libfsapfs

Library and tools to access the Apple File System (APFS)
GNU Lesser General Public License v3.0
342 stars 38 forks source link

MacOS: fatal error: 'openssl/err.h' file not found #66

Closed xtraa closed 1 year ago

xtraa commented 1 year ago

Hi, I followed your instructions and it's stiucked with

libcaes_context.c:31:10: fatal error: 'openssl/err.h' file not found

Not sure what to do. Sorry for being a noob.

joachimmetz commented 1 year ago

@xtraa this project is not intended for noobs, it assumes you know your way around building from source code. Regarding the issue you're encountering have a look at: https://github.com/libyal/libfsapfs/issues/56

xtraa commented 1 year ago

Thanks for your patience, Joachim! Well ok let's say noobish. I know how stuff works, I just don't know anything about compiling and the structures. Meanwhile I figured that different files are pointing to wrong directories because it seems that there is no standard folder structure given. I just don't know how to point the compiler to the right direction. That's not an issue with your release but with Mac OS (and me).

I just like to mount my existing but non-accessable apfs container, instead of spending money that I don't have for a recovery tools that will leave me with a mixed up bunch of data. :)) But however, at least this gives me the opportunity to look deeper into compiling.

joachimmetz commented 1 year ago

I just don't know how to point the compiler to the right direction.

have a look at ./configure --help specifically the --with-openssl option

xtraa commented 1 year ago

Thank you Joachim, it compiled fine. If you ever visit Hamburg, I'll buy you a beer or two! (twitter: @xtraa)

However, unfortunately didn't helped in my case. It's not returning an error, but it's also not mounted. /volumes/got is empty and also nothing in the finder.

`root@iMac fsapfstools # ./fsapfsinfo /dev/disk6
fsapfsinfo 20221102

Apple File System (APFS) information:

Container information: Identifier : e9e9438f-8fb8-473a-bd46-5344a3773a7c Number of volumes : 2

Volume: 1 information: Identifier : f83557b7-f8e3-4963-9a20-d14f331709dc Name : Data Compatible features : 0x00000006 (NX_FEATURE_LCFD)

Incompatible features       : 0x00000001
    (NX_INCOMPAT_VERSION1)

Read-only compatible features   : 0x00000000

Number of snapshots     : 0

Volume: 2 information: Identifier : c4153bc7-6138-4419-84dd-51b80ce52847 Name : test Compatible features : 0x00000006 (NX_FEATURE_LCFD)

Incompatible features       : 0x00000001
    (NX_INCOMPAT_VERSION1)

Read-only compatible features   : 0x00000000

Number of snapshots     : 2
Snapshot: 1 information:
    Name            : com.apple.TimeMachine.2023-01-05-081129.local
Snapshot: 2 information:
    Name            : com.apple.TimeMachine.2023-01-05-135102.local

root@iMac fsapfstools # ./fsapfsmount -f 1 -X volicon=/Library/Filesystems/macfuse.fs/Contents/Resources/Volume.icns /dev/disk6 got fsapfsmount 20221102

root@iMac fsapfstools # ls /Volumes/got root@iMac fsapfstools # `

Looks like I have to find another way. But it was worth a try and I learned sth new :))

joachimmetz commented 1 year ago

have a look at verbose and debug output https://github.com/libyal/libfsapfs/wiki/Troubleshooting#verbose-and-debug-output

it will give you much detail about the format