Upgrade to 1.35.5 for Coincashew users

hmm.

looks like Ubuntu has changed…this device is running “lunar lobster” which is a different ubu version than relays(jammy).

creates a “.local” file… this new OS has some changes in the way it uses local, I think.

not sure what to do next.

can i just rm -r that dir? and rebuild?

do i have to specify .local on build?
or does it just build their automatically?

or downgrade…so things are more predictable?

always something…lol

$NODE_HOME =
/home/d/cardano-my-node

looks like linux is creating a new filepath?

Just modify your cp command to reflect the .local file path. Then you’ll be moving the new 1.35.6 executable to the file path that your previous bin was.

1 Like

Re: 1.35.6 upgrade from 1.35.5 (kenetic release and “.local”)

ok this worked. thanks guys!

sudo cp $(find $HOME/git/cardano-node/dist-newstyle/build -type f -name “cardano-cli”) /home/uzr/.local/bin/cardano-cli

sudo cp $(find $HOME/git/cardano-node/dist-newstyle/build -type f -name “cardano-node”) /home/uzr/.local/bin/cardano-node/cardano-node

and

sudo chmod +rx /home/uzr/.local/bin/cardano-node

sudo chmod +rx /home/uzr/.local/bin/cardano-cli

1 Like

It’s just a convention. In a multi-user system /usr/local/bin has the applications that can be ran by any user while ~/.local/bin has the applications installed just by that user and runnable just by that user

The thing is, both paths are in your $PATH environment variable so that’s how the OS finds the executables.
If you are not happy with the ~/.local/bin location as you are following existing installation and upgrade instructions, you can just move everything to /usr/local/bin.

3 Likes

Good explanation.

2 Likes

following the same process to upgrade to 1.35.7
i get a tonne of errors after building…should i be concerned…or keep moving fwd?

~/git/cardano-node2$ ghc --version
cabal --version
The Glorious Glasgow Haskell Compilation System, version 8.10.7
cabal-install version 3.6.2.0
compiled using version 3.6.2.0 of the Cabal library
xx@xx:~/git/cardano-node2$ cd $HOME/git/cardano-node2
cabal configure -O0 -w ghc-8.10.7
echo -e "package cardano-crypto-praos\n flags: -external-libsodium-vrf" >> cabal.project.local
cabal build cardano-node cardano-cli
Cloning into '/home/cardano/git/cardano-node2/dist-newstyle/src/threepenn_-a39f3242b2cf0a10'...
remote: Enumerating objects: 4893, done.
remote: Counting objects: 100% (107/107), done.
remote: Compressing objects: 100% (59/59), done.
remote: Total 4893 (delta 50), reused 99 (delta 44), pack-reused 4786
Receiving objects: 100% (4893/4893), 3.42 MiB | 8.13 MiB/s, done.
Resolving deltas: 100% (2730/2730), done.
HEAD is now at 4ec92de Run https only
Warning: The package list for 'hackage.haskell.org' is 48 days old.
Run 'cabal update' to get the latest list of available packages.
Warning: Requested index-state 2022-09-27T18:00:00Z is newer than
'hackage.haskell.org'! Falling back to older state (2022-09-27T17:32:39Z).
Warning: The package list for 'cardano-haskell-packages' is 48 days old.
Run 'cabal update' to get the latest list of available packages.
Warning: Requested index-state 2023-03-24T17:48:01Z is newer than
'cardano-haskell-packages'! Falling back to older state
(2023-02-20T04:10:25Z).
Resolving dependencies...
cabal: Could not resolve dependencies:
[__0] trying: cardano-api-1.35.7 (user goal)
[__1] next goal: ouroboros-network (dependency of cardano-api)
[__1] rejecting: ouroboros-network-0.4.0.0 (conflict: cardano-api =>
ouroboros-network^>=0.3)
[__1] trying: ouroboros-network-0.3.0.1
[__2] next goal: cardano-node (user goal)
[__2] rejecting: cardano-node-1.35.7 (conflict: ouroboros-network==0.3.0.1,
cardano-node => ouroboros-network^>=0.3.0.2)
[__2] rejecting: cardano-node-1.35.4, cardano-node-1.35.3 (constraint from
user target requires ==1.35.7)
[__2] fail (backjumping, conflict set: cardano-node, ouroboros-network)
After searching the rest of the dependency tree exhaustively, these were the
goals I've had most trouble fulfilling: cardano-api, cardano-node,
ouroboros-network
HEAD is now at 4ec92de Run https only
Warning: The package list for 'hackage.haskell.org' is 48 days old.
Run 'cabal update' to get the latest list of available packages.
Warning: Requested index-state 2022-09-27T18:00:00Z is newer than
'hackage.haskell.org'! Falling back to older state (2022-09-27T17:32:39Z).
Warning: The package list for 'cardano-haskell-packages' is 48 days old.
Run 'cabal update' to get the latest list of available packages.
Warning: Requested index-state 2023-03-24T17:48:01Z is newer than
'cardano-haskell-packages'! Falling back to older state
(2023-02-20T04:10:25Z).
Resolving dependencies...
cabal: Could not resolve dependencies:
[__0] trying: cardano-api-1.35.7 (user goal)
[__1] next goal: ouroboros-network (dependency of cardano-api)
[__1] rejecting: ouroboros-network-0.4.0.0 (conflict: cardano-api =>
ouroboros-network^>=0.3)
[__1] trying: ouroboros-network-0.3.0.1
[__2] next goal: cardano-node (user goal)
[__2] rejecting: cardano-node-1.35.7 (conflict: ouroboros-network==0.3.0.1,
cardano-node => ouroboros-network^>=0.3.0.2)
[__2] rejecting: cardano-node-1.35.4, cardano-node-1.35.3 (constraint from
user target requires ==1.35.7)
[__2] fail (backjumping, conflict set: cardano-node, ouroboros-network)

After searching the rest of the dependency tree exhaustively, these were the
goals I’ve had most trouble fulfilling: cardano-api, cardano-node,
ouroboros-network

SOLVED: even though version 8.10.7 and cabal-install version 3.6.2.0… are installed
Dont forget to “update cabal” (just before version check)

Yeah, that’s an important step I think many miss. Cabal update

1 Like