How can I install tradingview? not found in Repositories
I assume this is one of those easy-money on options traps.
They are usually provided as a java jar.
→ [root tip] [How To] I have downloaded a program as a jar file - what now?
In this case it is an electron based application - do remember that any custom application is unsupported by Manjaro. It comes with their own caveats and may cease functioning without warning e.g. on a system repo sync.
→ [Need-To-Know] About Manjaro and AUR
It is possibly a better option to use snap …
It’s in the AUR.
pamac build tradingview
Getting the following error:
# pamac build tradingview
Warning: Building packages as dynamic user
Warning: Setting build directory to /var/cache/pamac
Failed to read AUR data from /var/lib/pacman/sync/packages-meta-ext-v1.json.gz : Error opening file /var/lib/pacman/sync/packages-meta-ext-v1.json.gz: No such file or directory
Failed to read AUR data from /var/lib/pacman/sync/packages-meta-ext-v1.json.gz : Error opening file /var/lib/pacman/sync/packages-meta-ext-v1.json.gz: No such file or directory
Error: target not found: tradingview
#
Don’t like snap.
Are you trying to build as root? Pamac should always be run as a normal user, never as root or with sudo. It will prompt you to enter your password if required.
Yes, root
Don’t - run as normal user
If you are totally comfortable with AUR, you should switch to at least testing (better unstable) - to eliminate the gap between Arch stable and Manjaro stable.
It is a known bug to have a message like this:
Failed to read AUR data from /var/lib/pacman/sync/packages-meta-ext-v1.json.gz : Error opening file /var/lib/pacman/sync/packages-meta-ext-v1.json.gz: No such file or directory
You can fix it by doing this: pamac upgrade --aur --force-refresh --dry-run
If it does not work that way try without --dry-run parameter.
Tried that, nothing happened:
# pamac upgrade --aur --force-refresh --dry-run
Warning: Building packages as dynamic user
Warning: Setting build directory to /var/cache/pamac
Preparing...
Failed to read AUR data from /var/lib/pacman/sync/packages-meta-ext-v1.json.gz : Error opening file /var/lib/pacman/sync/packages-meta-ext-v1.json.gz: No such file or directory
Nothing to do.
Transaction successfully finished.
#
Hold on, it’s working.
Why are you still doing this as root???
You must not run pamac as root user or with sudo! It has to be run as a normal user.
I limited sudo permissions.
Didn’t know this had to be done with sudo or would have added permissions for pamac.
I have a backup of my system partition in case something goes wrong.
NO. Do NOT use sudo! Pamac uses polkit for authentication. Run it as an unprivileged (i.e. normal) user. Not with sudo
. Not with su
. Not with run0
. Just run it as a normal user.
Ok. Will have to wait for process to complete.
So cancelled the compile process with Alt+Ctrl+C
Deleted contents in the /var/cache/pacman/pkg/
folder
Then restarted machine.
Everything working.
Then ran:
$ pamac build tradingview
Had to specify root password
and it compiled and upgraded tradingview (2.7.2-1 → 2.9.2-1)…
TradingView launched, but scrolling produced a flickering screen inside the TradingView desktop app.
Don’t have that problem with any of the other apps.
Will uninstall new version and try old version to see if still having the same issue.
AUR has the version 2.9.2-1 - the newest on their web site is 2.9.4-1
You could adapt the PKGBUILD so that it uses that now, in this moment, current version.
https://tvd-packages.tradingview.com/ubuntu/stable/latest/jammy/tradingview_amd64.deb
→ right side → Package actions → view PKGBUILD or, better, Download Snapshot
The best way to do anything is to avoid using sudo until you’re forced to do it.
If elevation is needed, you will either get a prompt to authenticate, or you’ll get a clear failure which you can identify…
Just to try this…
pamac update
then do pacman -Syu
.
No harm will be done.
However, run as sudo at the wrong time - and you’ll end up with problems all over the shop.
Even with systemctl - if I run systemctl stop plexmediaserver
I will be prompted IF and WHEN authentication is needed… no need to ‘sudo’ it.
Good habits…
Tried version 2.9.4-1 and that also has the screen tearing issue within tradingView desktop.
So uninstalled and went back to version 2.7.2-1
No issues after that.
It was just a thought and a thing to try - a recent version is, in theory, supposed to work better that the previous ones …
I have no problem with it
but that is simply due to the fact that I do not use or even know that program.
To recap; when installing/updatng
- Never use
sudo
withpamac
- Always use
sudo
withpacman
Use of the AUR is officially unsupported.