I'm trying to run maven on Windows Subsystem for Linux, and getting "cannot allocate memory" errors. However, free -m shows that I have plenty of memory available, and the same build on Cygwin succeeds.
Anyone have any tips for dealing with this? I'd prefer to change my settings.xml over my pom.xml's, but I'm open to almost anything.
Try to install maven by downloading it, not by doing an apt-get install maven. On my Ubuntu machines I've never been able to get the "apt" version to work right and have always resorted to downloading it directly from the Maven download instead. I tried that on my WSL and was able to build a pretty good sized JEE project with no issues.
Related
I installed IntelliJ and WebStorm on my Linux Mint distro. The problem I have is that I cannot use the integrated terminal on both of the software. In both of them there is a problem with my bash binary location. I researched and saw that the software manager in Linux Mint installs flatpak software by default, and that it works as a sort of a container. I tried to change the location of my bash binary to var/run/host.. but it didn't seem to work.
I read that people solve this by installing the tar version of the software or using snapd. Since snapd is not supported by Linux Mint, what are my alternatives? Can I somehow give access to my software to use my bash, npm, etc... and if not, why is it that flatpak makes these things so difficult?..
Flatpak works as a sandbox environment - each pack has its own runtime environment and because of security reasons, flatpak apps do not have direct access to host files. There could be a lot of problems due to this.
Please try reinstalling the IDE using one of the officially recommended options (https://www.jetbrains.com/help/webstorm/installation-guide.html) - download the tar.gz from https://www.jetbrains.com/webstorm/download/#section=linux, or use the toolbox app to manage installations
I have eclipse installed on my windows machine, but I can't seem to use it with bash so I installed eclipse on the bash terminal by using "sudo apt-get install eclipse". It installed fine, but I can't figure out how to launch the eclipse GUI from the linux subsystem so I can use it like the windows version. I tried using Xming and exporting DISPLAY, but that didn't work. Any ideas?
from what i understood from the link below, you require to update .bashrc to direct the GUI display to a X Server process. I installed xMing to run X Server from Windows 10. i also had to install gtk components that allowed me to run sublime text GUI from within WSL.
https://medium.com/#pck/how-to-use-sublime-text-3-from-command-line-with-ubuntu-bash-terminal-in-windows-10-subsystems-for-aa2ad59d088c
hope this helps
IMHO you should not install eclipse by apt but simply get your desired eclipse product from from https://www.eclipse.org/downloads/packages , download and unzip it to your wanted location and just start eclipse.
Reasons:
I do not know any Linux distribution containing a newer eclipse bundled, so you are always having older versions being slower and having less features
You can update your eclipse installation directly inside eclipse Check for updates
You can have multiple installations at same time
If you want to get rid of a eclipse installation just remove the folder and you are done.
But of course you can also use bash directly in Windows with Eclipse.
Please look at
https://stackoverflow.com/a/62724163/2590615 or take a glimpse at You Tube Video about Bash Debugging with Bash Editor eclipse plugin on a Windows 10 machine
PS: I am the maintainer of the mentioned eclipse plugin
I got a new Fedora machine some time ago from this link http://download.fedoraproject.org/pub/fedora/linux/releases/21/Workstation/i386/iso/Fedora-Live-Workstation-i686-21-5.iso. I need to install software, but for that I need a compiler ("No acceptable C compiler found in $PATH.") So, I want to install GCC compiler. I cannot connect to internet on the Fedora machine, but I do have an internet connected Windows 8.1 machine, that I can use to download and copy files via 2gb flash drive. Please help me on how to go about installing GCC to the Fedora machine.
If you have the packages you need from the Fedora mirrors on your flash drive, you can install them on the command line with (for example)
yum install /media/pathname/gcc-4.8.2-1.fc20.i686.rpm
However, since 2GB isn't big enough to include the entire Fedora release, you will need to pick and choose the packages. And this will leave you in the state we used to call "RPM hell" back before yum came along and solved that. You can either figure out the dependencies one by one (start with the above, and then add anything it tells you it is missing), or, you could go all out and copy the entire mirror in 2GB sized chunks to your Fedora machine's hard drive so you have it for any future needs.
When I try to install the ADT 16.0.1 plugin on Eclipse Indigo java developer edition release 1 or Helios normal edition release 2, I get the following error:
Cannot complete the install because one or more required items could not be found.
Software currently installed: Shared profile 1.0.0.1316138460759(SharedProfile_epp.package.java 1.0.0.1316138460759)
Missing requirement: Shared profile 1.0.0.1316138460759 (SharedProfile_epp.package.java 1.0.0.1316138460759) requires 'org.maven.ide.eclipse [1.0.100.20110804-1717]' but it could not be found
I've tried to lookup the package it's refering to on apache, JDK reference and android developer reference but no luck!
This's not my first time installing ADT, I already have it installed on Ubuntu and it works. I also had the old release (ADT 15) installed on Eclipse galileo on windows, but I re-installed windows (i'm running windows 7 ultimate by the way) and I can run the old release but it's very good developing with ICS API-s.
So, if anyone could help, it would be highly appreciated.
Lots of people have this type of problem with many different required items missing.
The last time I had this problem it was fixed by going to Window->Preferences
Then selecting Install/Update->Available Software Sites
Make sure everything listed is checked
In my installation I have:
https://dl-ssl.google.com/android/eclipse/
http://download.eclipse.org/releases/indigo
http://download.eclipse.org/eclipse/updates/3.7
You may also need to run Eclipse as an administrator
I was able to install the ADT Plugin only after
I moved the eclipse folder to a location without spaces (e.g.: c:\development\android\eclipse
I ran the Eclipse Update procedure as administrator
Also I am using the 32bit version even though I use windows7 64bit.
you just need to run as administrator
run Eclipse with compatibility mode winXP pack 2 and Run as Administrator.
You can find it by Right clicking Eclipse.exe > Properties > Compatibility Tab
I'm running Mac OS X 10.6.6. I have some data-only RPMs that I'd like to build.
Until recently I've done most of my development on a VM running CentOS, but one by one I've been able to transition these tasks to the Mac proper. I've been using Fink to access the Open/Free tools I need, but I'm not ready to go to Fink unstable, where the RPM5 package has been for a while.
I've also tried to build the RPM utilities from source, with little luck so far.
Is anyone else building RPMs natively on a Mac? If so, how?
You can install rpmbuild on MacOS using Homebrew package manager.
brew install rpm
This installs a bunch of packages including rpmbuild which is used to build an rpm. You can then run the following command to create an rpm
rpmbuild <specfile>
I was in this same situation today, but I've just successfully built and run rpm by first installing MacPorts and then installing from there. It requires an absolutely ludicrous 1.8GB of downloads before you can even build because it requires installing the (free) Xcode developer tools package from the Apple Store at 1.6GB, then another 140MB package of command line tools.
So, first carefully follow every step of the clear instructions here to install MacPorts:
http://www.macports.org/install.php
After doing all that, be sure to run the update command (as mentioned in the install instructions) so that it downloads the available software ports package (it'll say "can't find rpm" if you don't):
sudo port -v selfupdate
Once all that is done, run the following to fetch rpm and build it:
sudo port install rpm
On my early 2011 MacBook Pro with Lion, it took about 10 minutes to download everything and build.
The whole process takes a while, but it works. Good luck!
As #user132447 pointed out, you will need to reformat the drive to MacOS extended (case sensitive).
The rpm which is part of CentOS is different then the RPM5 build. Both are two different projects. And later may work on MacOS, but I would recommend you to go using VMs (or separate systems) which are RPM based only. That will surely save you long hours of fixing and caring about not so useful issues.
RPM from rpm.org doesn't support MacOS yet (it builds I guess - at least the latest version), and this is the rpm which CentOS uses.
I've been using RPM for Darwin for building maven based projects that create RPM artifacts.