Wednesday, May 9, 2018

pycharm install errors

 sudo tar xfz pycharm-*.tar.gz -C /opt/
[sudo] password for admin:
tar (child): pycharm-*.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now

(i ran the command from the extracted folder hence the error)

https://www.jetbrains.com/help/pycharm/install-and-set-up-pycharm.html#linux

------------------------------------------------------------------------------------------------------------------------------
sh pycharm.sh
No protocol specified

Start Failed: Failed to initialize graphics environment

java.awt.AWTError: Can't connect to X11 window server using ':0' as the value of the DISPLAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at sun.awt.X11GraphicsEnvironment.access$200(X11GraphicsEnvironment.java:65)
at sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:115)
at java.security.AccessController.doPrivileged(Native Method)
at sun.awt.X11GraphicsEnvironment.(X11GraphicsEnvironment.java:74)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at java.awt.GraphicsEnvironment.createGE(GraphicsEnvironment.java:103)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:82)
at sun.awt.X11.XToolkit.(XToolkit.java:128)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at java.awt.Toolkit$2.run(Toolkit.java:860)
at java.awt.Toolkit$2.run(Toolkit.java:855)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:854)
at com.intellij.ui.AppUIUtil.updateFrameClass(AppUIUtil.java:156)
at com.intellij.idea.StartupUtil.prepareAndStart(StartupUtil.java:89)
at com.intellij.idea.MainImpl.start(MainImpl.java:34)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.intellij.ide.plugins.PluginManager.lambda$start$0(PluginManager.java:77)
at java.lang.Thread.run(Thread.java:745)


above error due to running the script as root
 sh pycharm.sh
May 10, 2018 11:39:44 AM java.util.prefs.FileSystemPreferences$6 run
WARNING: Prefs file removed in background /home/programmer/.java/.userPrefs/prefs.xml


No comments:

Post a Comment