メインコンテンツへスキップ
見出し画像
Photo bykochitaku

FUSE install log (3.10.5, Ubuntu-20.04.3 server)

    FUSE 3.10.5 (最新版) を Ubuntu-20.04.3 server に installしました.

    ダウンロード、コンパイル、インストール

    sudo su -
    apt -y install meson pkg-config python3-pip
    pip3 install pytest
    
    wget https://github.com/libfuse/libfuse/releases/download/fuse-3.10.5/fuse-3.10.5.tar.xz
    tar xfJ fuse-3.10.5.tar.xz
    cd fuse-3.10.5/
    
    mkdir build
    cd build/
    meson ..
    
    meson configure
    meson configure -D disable-mtab=true
    
    ninja
    python3 -m pytest test/
    
    ninja install
    
    ln -s /usr/local/lib/x86_64-linux-gnu/libfuse3.so.3 /usr/lib/x86_64-linux-gnu/

    もし
    meson ..
    で
    ../util/meson.build:19:2: ERROR: Pkg-config binary for machine MachineChoice.HOST not found. Giving up.
    となったら
    apt -y install pkg-config
    を忘れています

    もし
    python3 -m pytest test/
    で
    /usr/local/bin/python3: No module named pytest
    となったら
    pip3 install pytest
    を忘れています

    ln -s /usr/local/lib/x86_64-linux-gnu/libfuse3.so.3 /usr/lib/x86_64-linux-gnu/
    は,LD_LIBRARY_PATHの設定やldconfigなどの別の方法で解決しても良いです.

    サンプルの動作

    こちらにある hello.c をローカルに保存してください.

    gcc -Wall hello.c `pkg-config fuse3 --cflags --libs` -o hello
    ./hello -f /mnt/

    もし
    ./hello -f /mnt/
    で
    ./hello: error while loading shared libraries: libfuse3.so.3: cannot open shared object file: No such file or directory
    となったら
    ln -s /usr/local/lib/x86_64-linux-gnu/libfuse3.so.3 /usr/lib/x86_64-linux-gnu/
    を忘れています

    別のターミナルで,以下をやってっましょう

    cd /mnt/
    ls
    hello
    cat hello
    Hello World!
    cd
    umount /mnt

     
     

    May

     
     
    ITと投資が好きです.

    あなたへのおすすめ