FuelLabs / fuelup

⛽ The Fuel toolchain installer
https://fuellabs.github.io/fuelup/latest
Apache License 2.0
280 stars 143 forks source link

dyld: Symbol not found during usage of fuel-undexer #492

Open lzhabo opened 1 year ago

lzhabo commented 1 year ago

Hi guys, I just reinstalled brew, rustup and fuelup but I still have this error

lidia@Air-Lidia swaylend-indexer % fuel-indexer
dyld: Symbol not found: __ZNKSt3__115basic_stringbufIcNS_11char_traitsIcEENS_9allocatorIcEEE3strEv
  Referenced from: /Users/lidia/.fuelup/toolchains/latest-aarch64-apple-darwin/bin/fuel-indexer (which was built for Mac OS X 12.0)
  Expected in: /usr/lib/libc++.1.dylib

zsh: abort      fuel-indexer
fuelup show
Default host: aarch64-apple-darwin
fuelup home: /Users/lidia/.fuelup

installed toolchains
--------------------
latest-aarch64-apple-darwin (default)

active toolchain
-----------------
latest-aarch64-apple-darwin (default)
  forc : 0.44.1
    - forc-client
      - forc-deploy : 0.44.1
      - forc-run : 0.44.1
    - forc-doc : 0.44.1
    - forc-explore : 0.28.1
    - forc-fmt : 0.44.1
    - forc-index : 0.20.8
    - forc-lsp : 0.44.1
    - forc-tx : 0.44.1
    - forc-wallet : 0.3.0
  fuel-core : Error getting version string
  fuel-core-keygen : Error getting version string
  fuel-indexer : Error getting version string

fuels versions
---------------
forc : 0.45
forc-wallet : 0.45
ra0x3 commented 1 year ago

@lzhabo we're looking into this now :)

deekerno commented 1 year ago

@lzhabo What were the exact steps that you performed as far as reinstalling each of those components? What I'm most interested in is how you reinstalled fuelup.

lzhabo commented 1 year ago

@lzhabo What were the exact steps that you performed as far as reinstalling each of those components? What I'm most interested in is how you reinstalled fuelup.

rm -rf /Users/lidia/.fuelup and curl --proto '=https' --tlsv1.2 -sSf https://install.fuel.network/fuelup-init.sh | sh

The whole idea behind deletion was because of those errors

  fuel-core : Error getting version string
  fuel-core-keygen : Error getting version string
  fuel-indexer : Error getting version string
ra0x3 commented 1 year ago

@deekerno Just FYI confirming that the steps @lzhabo mentions here ☝🏽 work for me (just now)


> rm -rfv ~/.fuelup                   
/Users/rashad/.fuelup/bin/forc-doc
/Users/rashad/.fuelup/bin/forc
/Users/rashad/.fuelup/bin/forc-submit
/Users/rashad/.fuelup/bin/fuel-core-keygen
/Users/rashad/.fuelup/bin/forc-deploy
/Users/rashad/.fuelup/bin/forc-run
/Users/rashad/.fuelup/bin/forc-explore
/Users/rashad/.fuelup/bin/forc-wallet
/Users/rashad/.fuelup/bin/forc-index
/Users/rashad/.fuelup/bin/fuel-indexer
/Users/rashad/.fuelup/bin/fuel-core
/Users/rashad/.fuelup/bin/fuelup
/Users/rashad/.fuelup/bin/forc-lsp
/Users/rashad/.fuelup/bin/forc-fmt
/Users/rashad/.fuelup/bin/forc-tx
/Users/rashad/.fuelup/bin
/Users/rashad/.fuelup/settings.toml
/Users/rashad/.fuelup/tmp
/Users/rashad/.fuelup/toolchains/latest-aarch64-apple-darwin/bin/forc-doc
/Users/rashad/.fuelup/toolchains/latest-aarch64-apple-darwin/bin/forc
/Users/rashad/.fuelup/toolchains/latest-aarch64-apple-darwin/bin/forc-submit
/Users/rashad/.fuelup/toolchains/latest-aarch64-apple-darwin/bin/fuel-core-keygen
/Users/rashad/.fuelup/toolchains/latest-aarch64-apple-darwin/bin/forc-deploy
/Users/rashad/.fuelup/toolchains/latest-aarch64-apple-darwin/bin/forc-run
/Users/rashad/.fuelup/toolchains/latest-aarch64-apple-darwin/bin/forc-explore
/Users/rashad/.fuelup/toolchains/latest-aarch64-apple-darwin/bin/forc-wallet
/Users/rashad/.fuelup/toolchains/latest-aarch64-apple-darwin/bin/forc-index
/Users/rashad/.fuelup/toolchains/latest-aarch64-apple-darwin/bin/fuel-indexer
/Users/rashad/.fuelup/toolchains/latest-aarch64-apple-darwin/bin/fuel-core
/Users/rashad/.fuelup/toolchains/latest-aarch64-apple-darwin/bin/forc-lsp
/Users/rashad/.fuelup/toolchains/latest-aarch64-apple-darwin/bin/forc-fmt
/Users/rashad/.fuelup/toolchains/latest-aarch64-apple-darwin/bin/forc-tx
/Users/rashad/.fuelup/toolchains/latest-aarch64-apple-darwin/bin
/Users/rashad/.fuelup/toolchains/latest-aarch64-apple-darwin
/Users/rashad/.fuelup/toolchains/latest-2023-07-13-aarch64-apple-darwin/bin/forc
/Users/rashad/.fuelup/toolchains/latest-2023-07-13-aarch64-apple-darwin/bin/forc-explore
/Users/rashad/.fuelup/toolchains/latest-2023-07-13-aarch64-apple-darwin/bin/forc-wallet
/Users/rashad/.fuelup/toolchains/latest-2023-07-13-aarch64-apple-darwin/bin/forc-index
/Users/rashad/.fuelup/toolchains/latest-2023-07-13-aarch64-apple-darwin/bin/fuel-indexer
/Users/rashad/.fuelup/toolchains/latest-2023-07-13-aarch64-apple-darwin/bin/fuel-core
/Users/rashad/.fuelup/toolchains/latest-2023-07-13-aarch64-apple-darwin/bin
/Users/rashad/.fuelup/toolchains/latest-2023-07-13-aarch64-apple-darwin
/Users/rashad/.fuelup/toolchains
/Users/rashad/.fuelup/store/fuel-indexer-0.18.2/fuel-indexer
/Users/rashad/.fuelup/store/fuel-indexer-0.18.2
/Users/rashad/.fuelup/store/forc-explore-0.28.1/forc-explore
/Users/rashad/.fuelup/store/forc-explore-0.28.1
/Users/rashad/.fuelup/store/forc-index-0.20.8/forc-index
/Users/rashad/.fuelup/store/forc-index-0.20.8
/Users/rashad/.fuelup/store/forc-0.42.1/fuels_version
/Users/rashad/.fuelup/store/forc-0.42.1/forc-doc
/Users/rashad/.fuelup/store/forc-0.42.1/forc
/Users/rashad/.fuelup/store/forc-0.42.1/forc-submit
/Users/rashad/.fuelup/store/forc-0.42.1/forc-deploy
/Users/rashad/.fuelup/store/forc-0.42.1/forc-run
/Users/rashad/.fuelup/store/forc-0.42.1/forc-lsp
/Users/rashad/.fuelup/store/forc-0.42.1/forc-fmt
/Users/rashad/.fuelup/store/forc-0.42.1/forc-tx
/Users/rashad/.fuelup/store/forc-0.42.1
/Users/rashad/.fuelup/store/fuel-indexer-0.20.5/fuel-indexer
/Users/rashad/.fuelup/store/fuel-indexer-0.20.5
/Users/rashad/.fuelup/store/fuel-core-keygen-0.20.4/fuel-core-keygen
/Users/rashad/.fuelup/store/fuel-core-keygen-0.20.4/fuel-core
/Users/rashad/.fuelup/store/fuel-core-keygen-0.20.4
/Users/rashad/.fuelup/store/forc-wallet-0.2.3/fuels_version
/Users/rashad/.fuelup/store/forc-wallet-0.2.3/forc-wallet
/Users/rashad/.fuelup/store/forc-wallet-0.2.3
/Users/rashad/.fuelup/store/fuel-core-0.18.3/fuel-core-keygen
/Users/rashad/.fuelup/store/fuel-core-0.18.3/fuel-core
/Users/rashad/.fuelup/store/fuel-core-0.18.3
/Users/rashad/.fuelup/store/forc-index-0.20.5/forc-index
/Users/rashad/.fuelup/store/forc-index-0.20.5
/Users/rashad/.fuelup/store/forc-wallet-0.3.0/fuels_version
/Users/rashad/.fuelup/store/forc-wallet-0.3.0/forc-wallet
/Users/rashad/.fuelup/store/forc-wallet-0.3.0
/Users/rashad/.fuelup/store/forc-0.44.1/fuels_version
/Users/rashad/.fuelup/store/forc-0.44.1/forc-doc
/Users/rashad/.fuelup/store/forc-0.44.1/forc
/Users/rashad/.fuelup/store/forc-0.44.1/forc-submit
/Users/rashad/.fuelup/store/forc-0.44.1/forc-deploy
/Users/rashad/.fuelup/store/forc-0.44.1/forc-run
/Users/rashad/.fuelup/store/forc-0.44.1/forc-lsp
/Users/rashad/.fuelup/store/forc-0.44.1/forc-fmt
/Users/rashad/.fuelup/store/forc-0.44.1/forc-tx
/Users/rashad/.fuelup/store/forc-0.44.1
/Users/rashad/.fuelup/store/forc-index-0.18.2/forc-index
/Users/rashad/.fuelup/store/forc-index-0.18.2
/Users/rashad/.fuelup/store/fuel-indexer-0.20.8/fuel-indexer
/Users/rashad/.fuelup/store/fuel-indexer-0.20.8
/Users/rashad/.fuelup/store/fuel-core-0.20.4/fuel-core-keygen
/Users/rashad/.fuelup/store/fuel-core-0.20.4/fuel-core
/Users/rashad/.fuelup/store/fuel-core-0.20.4
/Users/rashad/.fuelup/store
/Users/rashad/.fuelup

> curl --proto '=https' --tlsv1.2 -sSf https://install.fuel.network/fuelup-init.sh | sh

fuelup uses "/Users/rashad/.fuelup" as its home directory to manage the Fuel toolchain, and will install binaries there.

To use the toolchain, you will have to configure your PATH, which tells your machine where to locate fuelup and the Fuel toolchain.

If permitted, fuelup-init will configure your PATH for you by running the following:

    echo "export PATH="$HOME/.fuelup/bin:$PATH"" >> /Users/rashad/.zshrc

Would you like fuelup-init to modify your PATH variable for you? (N/y)
y

fuelup will modify your PATH variable for you.

info: downloading fuelup 0.19.5

Downloading: forc forc-explore forc-index forc-wallet fuel-core fuel-core-keygen fuel-indexer

Adding component forc v0.44.1 to 'latest-aarch64-apple-darwin'
Caching fuels version at /Users/rashad/.fuelup/store/forc-0.44.1/fuels_version
Fetching binary from https://github.com/FuelLabs/sway/releases/download/v0.44.1/forc-binaries-darwin_arm64.tar.gz
Unpacking and moving forc-doc to /Users/rashad/.fuelup/store/forc-0.44.1
Unpacking and moving forc to /Users/rashad/.fuelup/store/forc-0.44.1
Unpacking and moving forc-submit to /Users/rashad/.fuelup/store/forc-0.44.1
Unpacking and moving forc-deploy to /Users/rashad/.fuelup/store/forc-0.44.1
Unpacking and moving forc-run to /Users/rashad/.fuelup/store/forc-0.44.1
Unpacking and moving forc-lsp to /Users/rashad/.fuelup/store/forc-0.44.1
Unpacking and moving forc-fmt to /Users/rashad/.fuelup/store/forc-0.44.1
Unpacking and moving forc-tx to /Users/rashad/.fuelup/store/forc-0.44.1
Fetching core forc dependencies
Installed forc v0.44.1 for toolchain 'latest-aarch64-apple-darwin'

Adding component forc-explore v0.28.1 to 'latest-aarch64-apple-darwin'
Fetching binary from https://github.com/FuelLabs/forc-explorer/releases/download/v0.28.1/forc-explore-0.28.1-aarch64-apple-darwin.tar.gz
Unpacking and moving forc-explore to /Users/rashad/.fuelup/store/forc-explore-0.28.1
Installed forc-explore v0.28.1 for toolchain 'latest-aarch64-apple-darwin'

Adding component forc-index v0.20.8 to 'latest-aarch64-apple-darwin'
Fetching binary from https://github.com/FuelLabs/fuel-indexer/releases/download/v0.20.8/forc-index-0.20.8-aarch64-apple-darwin.tar.gz
Unpacking and moving forc-index to /Users/rashad/.fuelup/store/forc-index-0.20.8
Installed forc-index v0.20.8 for toolchain 'latest-aarch64-apple-darwin'

Adding component forc-wallet v0.3.0 to 'latest-aarch64-apple-darwin'
Caching fuels version at /Users/rashad/.fuelup/store/forc-wallet-0.3.0/fuels_version
Fetching binary from https://github.com/FuelLabs/forc-wallet/releases/download/v0.3.0/forc-wallet-0.3.0-aarch64-apple-darwin.tar.gz
Unpacking and moving forc-wallet to /Users/rashad/.fuelup/store/forc-wallet-0.3.0
Installed forc-wallet v0.3.0 for toolchain 'latest-aarch64-apple-darwin'

Adding component fuel-core v0.20.4 to 'latest-aarch64-apple-darwin'
Fetching binary from https://github.com/FuelLabs/fuel-core/releases/download/v0.20.4/fuel-core-0.20.4-aarch64-apple-darwin.tar.gz
Unpacking and moving fuel-core-keygen to /Users/rashad/.fuelup/store/fuel-core-0.20.4
Unpacking and moving fuel-core to /Users/rashad/.fuelup/store/fuel-core-0.20.4
Installed fuel-core v0.20.4 for toolchain 'latest-aarch64-apple-darwin'

Adding component fuel-core-keygen v0.20.4 to 'latest-aarch64-apple-darwin'
Fetching binary from https://github.com/FuelLabs/fuel-core/releases/download/v0.20.4/fuel-core-0.20.4-aarch64-apple-darwin.tar.gz
Unpacking and moving fuel-core-keygen to /Users/rashad/.fuelup/store/fuel-core-keygen-0.20.4
Unpacking and moving fuel-core to /Users/rashad/.fuelup/store/fuel-core-keygen-0.20.4
Installed fuel-core-keygen v0.20.4 for toolchain 'latest-aarch64-apple-darwin'

Adding component fuel-indexer v0.20.8 to 'latest-aarch64-apple-darwin'
Fetching binary from https://github.com/FuelLabs/fuel-indexer/releases/download/v0.20.8/fuel-indexer-0.20.8-aarch64-apple-darwin.tar.gz
Unpacking and moving fuel-indexer to /Users/rashad/.fuelup/store/fuel-indexer-0.20.8
Installed fuel-indexer v0.20.8 for toolchain 'latest-aarch64-apple-darwin'

Installed:
- forc 0.44.1
- forc-explore 0.28.1
- forc-index 0.20.8
- forc-wallet 0.3.0
- fuel-core 0.20.4
- fuel-core-keygen 0.20.4
- fuel-indexer 0.20.8

The Fuel toolchain is installed and up to date

fuelup 0.19.5 has been installed in /Users/rashad/.fuelup/bin. To fetch the latest toolchain containing the forc and fuel-core binaries, run 'fuelup toolchain install latest'. To generate completions for your shell, run 'fuelup completions --shell=SHELL'.

/Users/rashad/.fuelup/bin already exists in your PATH.

> fuel-indexer --version      
fuel-indexer 0.20.8

> fuelup show                        
Default host: aarch64-apple-darwin
fuelup home: /Users/rashad/.fuelup

installed toolchains
--------------------
latest-aarch64-apple-darwin (default)

active toolchain
-----------------
latest-aarch64-apple-darwin (default)
  forc : 0.44.1
    - forc-client
      - forc-deploy : 0.44.1
      - forc-run : 0.44.1
    - forc-doc : 0.44.1
    - forc-explore : 0.28.1
    - forc-fmt : 0.44.1
    - forc-index : 0.20.8
    - forc-lsp : 0.44.1
    - forc-tx : 0.44.1
    - forc-wallet : 0.3.0
  fuel-core : 0.20.4
  fuel-core-keygen : Error getting version string
  fuel-indexer : 0.20.8

fuels versions
---------------
forc : 0.45
forc-wallet : 0.45
deekerno commented 1 year ago

@lzhabo I don't think this is indexer-specific as you also seem to be missing the fuel-core components as well.

Can you try using fuelup component list to ensure that fuel-indexer is available for installation and then try fuelup component add fuel-indexer?

lzhabo commented 1 year ago

fuelup component list

Same

lidia@Air-Lidia ~ % fuelup component add fuel-indexer    
Installing specific components is reserved for custom toolchains.
You are currently using 'latest-aarch64-apple-darwin'.

You may create a custom toolchain using 'fuelup toolchain new <toolchain>'.
lidia@Air-Lidia ~ % fuelup toolchain new my-toolchain
New toolchain initialized: my-toolchain
default toolchain set to 'my-toolchain'
lidia@Air-Lidia ~ % fuelup toolchain new <toolchain>
zsh: parse error near `\n'
lidia@Air-Lidia ~ % fuelup component add fuel-indexer    

Adding component fuel-indexer v0.20.8 to 'my-toolchain'
Installed fuel-indexer v0.20.8 for toolchain 'my-toolchain'
lidia@Air-Lidia ~ % fuelup show
Default host: aarch64-apple-darwin
fuelup home: /Users/lidia/.fuelup

installed toolchains
--------------------
latest-aarch64-apple-darwin
my-toolchain (default)

active toolchain
-----------------
my-toolchain (default)
  forc - not found
    - forc-client
      - forc-deploy - not found
      - forc-run - not found
    - forc-doc - not found
    - forc-explore - not found
    - forc-fmt - not found
    - forc-index - not found
    - forc-lsp - not found
    - forc-tx - not found
    - forc-wallet - not found
  fuel-core - not found
  fuel-core-keygen - not found
  fuel-indexer : Error getting version string
lidia@Air-Lidia ~ % fuelup component list
my-toolchain
Installed:
  fuel-indexer : failed getting current version

Installable:
  forc (latest: 0.44.1)
    - forc-fmt forc-lsp forc-doc forc-deploy forc-run 
  forc-explore (latest: 0.28.1)
  forc-index (latest: 0.20.8)
  forc-wallet (latest: 0.3.0)
  fuel-core (latest: 0.20.4)
  fuel-core-keygen (latest: 0.20.4)

lidia@Air-Lidia ~ % fuelup component add fuel-indexer    
fuel-indexer already exists in toolchain 'my-toolchain'; replacing existing version with fuel-indexer (latest)

Adding component fuel-indexer v0.20.8 to 'my-toolchain'
Installed fuel-indexer v0.20.8 for toolchain 'my-toolchain'
lidia@Air-Lidia ~ % fuelup show
Default host: aarch64-apple-darwin
fuelup home: /Users/lidia/.fuelup

installed toolchains
--------------------
latest-aarch64-apple-darwin
my-toolchain (default)

active toolchain
-----------------
my-toolchain (default)
  forc - not found
    - forc-client
      - forc-deploy - not found
      - forc-run - not found
    - forc-doc - not found
    - forc-explore - not found
    - forc-fmt - not found
    - forc-index - not found
    - forc-lsp - not found
    - forc-tx - not found
    - forc-wallet - not found
  fuel-core - not found
  fuel-core-keygen - not found
  fuel-indexer : Error getting version string
lidia@Air-Lidia ~ % fuel-indexer
dyld: Symbol not found: __ZNKSt3__115basic_stringbufIcNS_11char_traitsIcEENS_9allocatorIcEEE3strEv
  Referenced from: /Users/lidia/.fuelup/toolchains/my-toolchain/bin/fuel-indexer (which was built for Mac OS X 12.0)
  Expected in: /usr/lib/libc++.1.dylib

zsh: abort      fuel-indexer
lidia@Air-Lidia ~ % 
sdankel commented 1 year ago

Which version of OSX are you using?

which was built for Mac OS X 12.0 - Are you using 12.0 or higher?

lzhabo commented 1 year ago

Which version of OSX are you using?

which was built for Mac OS X 12.0 - Are you using 12.0 or higher?

image
lzhabo commented 1 year ago

Hey guys Is there any ideas how to fix that?