BerryFarm / berrymuch

🍇 Power user Unix distribution for Blackberry 10
48 stars 9 forks source link

tmux not in bin folder? #65

Closed 4drift closed 2 years ago

4drift commented 2 years ago

I haven't had the ability to launch tmux since version 0.3, I'm not sure why.

In the instructions:

cd /accounts/1000/shared/misc/clitools
sh install.sh

I simply move clitools.zip and install.sh to /accounts/1000/shared/misc beforehand, the only thing I do different.

karawitan commented 2 years ago

Ok please check that you have a packages/ directory. There are 2 packages needed : libevent and tmux You have to unzip them at the right place.

karawitan commented 2 years ago

As far as I see in the documentation this point (how to uncompress an available Berrymuch package) is missing . So thank you very much for the feedback

4drift commented 2 years ago

I do have libevent-2.0.22-stable.zip and tmux-2.0.zip in packages in /misc/clitools.

I did try to take the tmux binary from the other old blackberry I have from 0.3 and put it in $HOME/bin in this new 0.5 install. It wouldn't run, and chmod +x wouldn't work either.

I tried unzipping the tmux package to documents to look for a binary and I didn't see one. I saw tmux.1, tmux.c, tmux.h, and tmux.o in the main folder. Which is also the same files I see in the main folder /misc/clitools, no binary.

If there's a way to install it from the zip I'm not really sure how and I don't want to break anything.

karawitan commented 2 years ago

Ok then you may take the .zip files from 0.3 and unzip them below ​/accounts/1000/shared/misc/clitools

karawitan commented 2 years ago

0.5 is a pre-release, not a final one. But everything is compatible, as the compiler is the same

4drift commented 2 years ago

Okay, I got the zip file from packages tmux-1.9a unzipped it into /misc/clitools. I tried it in the subfolder tmux-1.9a which has share and bin folders within it, manpage being in the share folder.

I also tried copying just the tmux binary (I actually did this first) into /misc/clitools and that didn't work. Tried copying the tmux.1 file in there too just in case, that didn't work.

I tried adding /misc/clitools to path, and tried copying into $HOME/bin again. I am just getting permission denied.

EDIT: And of course couldn't put it in /misc/clitools/bin, and chmod+x didn't work in /misc/clitools. But should I have tried to put the zip file in /misc/clitools/packages and re-run the install script?

EDIT 2: I should have specified that tmux-2.0 in packages on the 0.5 install doesn't have the binary in the first place, which I had thought to be the problem.

karawitan commented 2 years ago

cd /accounts/1000/shared/misc/clitools unzip libevent-2.0.22-stable.zip unzip tmux-2.0.zip

Then you have /accounts/1000/shared/misc/clitools/bin/tmux

karawitan commented 2 years ago

are u on Telegram ? PM me at @kaloudov I'll help you

karawitan commented 2 years ago

Ok I think I got your problem. You said you launched install.sh from BerryMuch 0.5 ? did it ask for removal of previous BerryMuch version ?

4drift commented 2 years ago

No I don't have telegram, or really any other chat apps.

I unzipped both at /accounts/1000/shared/misc/clitools/libevent-2.0.22-stable/ /accounts/1000/shared/misc/clitools/tmux-2.0/

Re-ran the build script and selected None for replacing already there items -- and All for "replacing" all items two separate times. The latter of course yields nothing, as everything says permission denied.

This is a blackberry classic that just had a fresh install of 0.5 on it. I have an OLD classic with 0.3 on it I was attempting to take files off of to get tmux. So no there was not a previous version installed.

karawitan commented 2 years ago

ha non, they should not be dezipper under /accounts/1000/shared/misc/clitools/libevent-2.0.22-stable/ nor /accounts/1000/shared/misc/clitools/tmux-2.0/

The zip archive contains bin/ lib/ etc. that go below /accounts/1000/shared/misc/clitools/ directly.

I wrote already the commands you have to type :

cd /accounts/1000/shared/misc/clitools unzip libevent-2.0.22-stable.zip unzip tmux-2.0.zip

Then you have /accounts/1000/shared/misc/clitools/bin/tmux

4drift commented 2 years ago

Well now I have 263 files from tmux-2.0.zip in clitools folder and still no binary tmux to execute.

There was never a binary in that zip file, that was a problem from the beginning. I should have been more clear. I tried to outline all the things I tried because I never had a binary in version 0.5.k

While tmux-1.9a.zip (in version 0.3) had share/man/tmux.1 and bin/tmux in it's zip file, tmux-2.0 only ever had the files to compile tmux. I also tried using gcc to compile it and that didn't work, not that it would matter if there is no executable privileges on the file? Since I can't add it with chmod +x either.

And I tried to get tmux-1.9a every which way on there like I said before, but it never had executable abilities.

karawitan commented 2 years ago

the 2.0 version of tmux does not work. Only 1.9a is working

4drift commented 2 years ago

Well, I had already tried to put the tmux 1.9a binary in /misc/clitools/bin folder in the file manager and got access denied, I also had already tried in $HOME/bin and no executable ability from the file itself stops it from working.

But I just did exactly the steps you said. And it still does not work.

https://i.imgur.com/IP1HyPX.png

EDIT: I had already run unzip libevent-2.0.22-stable.zip and got Permission denied for /clitools/lib as well.

karawitan commented 2 years ago

Hem ok this is embarrassing. These permissions issues are probably due to some bug in bb10, similar issue has been reported in the Telegram channel. So what does "ls -ld bin" give ?

4drift commented 2 years ago

drwxr-sr-x+ 2 101941000 1000_shared 20480 Dec 3 00:54 bin

In file manager trying to unzip a package in /clitools NONE of the folders are accessible, all say "Can't unzip files to a read-only folder" actually.

With clitools 0.3 installed to documents on old phone: ONLY /clitools/lib is inaccessible.

karawitan commented 2 years ago

ok, so, please try this: chmod 777 bin (should not change anything, but strangelly, on my phone, it solved this kind of problem) Then, try again unziping tmux-1.9 with libevent . Then, put back the permissions to 755 I don't know what is the role of s here .. but it's interesting

4drift commented 2 years ago

chmod: changing permissions of 'bin/': Operation not permitted

Then I get the exact same error as before when attempting to unzip.

EDIT: and just to be clear tmux still doesn't run, still no binary.

karawitan commented 2 years ago

Are you able to mv bin bin.old and back ?

4drift commented 2 years ago

Well... once I successfully did mv bin bin.old I no longer had mv command. :-D Heh. I lazily went to file manager and just renamed it there back to bin. File manager still says the folder is read only.

karawitan commented 2 years ago

Ok being able to move bin/ means that you'll be able to repair . I think the best to do is now to

I don't advise to install 0.5-rc , as they introduce a new prefix (we stripped clitools/, to get shorter path and performances improvements) . We have currently no clear procedure to switch from old to new prefix. 0.5 might also introduce an improved way to fetch / uncompress packages.

4drift commented 2 years ago

Apologies for the delay in response. I have 0.4 installed now, and I can use tmux again. I wish I had installed that the first time. Now I see I cannot delete the "old" folder unfortunately, so it's just going to be there forever taking up space. EDIT: it is 2GB as is the new install of 0.4... so 4GB of internal memory taken..

Anyways, thanks for all the help and the great work on berrymuch.

karawitan commented 2 years ago

Ok very happy to know that you managed finally to do it :)

4drift commented 2 years ago

....So there's no way to delete the old folder taking up 2GBs?

karawitan commented 2 years ago

The only thing that succeeded for me was chmod -R 777 on the top(s) dir(s) and then rm -rf "top(s) dir(s)" May I ask you to open a specific issue for the permission issue ? as it will be usefull to everyone