There was another thread on vim-R-plugin but since it was bit old, I started this new thread. Also my situation is kind of different, since I am trying this on a mobile device, Samsung vibrate.
I was following instructions in this site:
I got stuck installing a R package called vimcom. No matter how I tried it always come up with the error :
.onLoad failed in loadNamespace()for 'vimcom', details:.......
........................
Ubuntu version is maverick: 10.14
R-version 2.11
What can I do to solve this error?
The post is a bit old but I had some problems too.
I was using:
Ubuntu 14.04.02 LTS
Vim 7.4.273
Vim-R-Plugin-1.2-3
Vimcom-1.2-3
and unfortunately the default R version was up at 3.2.0 after upgrading all binaries with
sudo apt-get update;
sudo apt-get upgrade;
R --version
3.2.0
So using Ubuntu's after removing the R packages
sudo apt-get remove --auto-remove r-recommended r-base r-base-core
apt-cache search tool to find the available older packages:
sudo apt-cache showpkg r-base-core
in this there was options for 3.1.3-1trusty0. So hence installing the generation previous was available with:
sudo apt-get install r-base-core=3.1.3-1trusty0
sudo apt-get install r-recommend=3.1.3-1trusty0
sudo apt-get install r-base=3.1.3-1trusty0
Thence vimcom could be installed by the standard method and every thing worked. PS just a note, I accidentally thought removing r-base was sufficient, it wasn't - you need to remove r-base-core or you'll remain at 3.2.0. Hope that helps somebody.
Related
I am trying to develop an application on Eclipse with ADT bundle, but when I try to run my application it shows the following error:
[2015-09-08 21:27:53 - gpio] /home/tejvir/android-sdks/build-tools/23.0.1/aapt: error while loading shared libraries: libgcc_s.so.1: cannot open shared object file: No such file or directory
What should be done in this situation?
I tried the solutions in the other question mentioned above but I have encountered the following errors in it :
sudo apt-get -qqy install libncurses5:i386 libstdc++6:i386 zlib1g:i386
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
I have also tried the other solution given on the same link and even that has not provided me with the solution.
Following are the errors I have encountered while trying the solution:
sudo apt-get install libc6-i386 lib32stdc++6 lib32gcc1 lib32ncurses5
Reading package lists... Done
Building dependency tree
Reading state information... Done
lib32ncurses5 is already the newest version.
libc6-i386 is already the newest version.
libc6-i386 set to manually installed.
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
lib32gcc1 : Depends: gcc-4.9-base (= 4.9-20140406-0ubuntu1) but 4.9.1-0ubuntu1 is to be installed
lib32stdc++6 : Depends: gcc-4.8-base (= 4.8.2-19ubuntu1) but 4.8.4-2ubuntu1~14.04 is to be installed
E: Unable to correct problems, you have held broken packages.
So I am kinda stuck here.
I have actually solved my question with some expert help.
I have explained the problem above but the real problem was that my gcc was having some issues regarding which version to run and the versions that i had installed were not for my distribution i.e. Ubuntu 14.04. And in addition to that adb that comes for linux has been updated to run with 32 bit architecture but not with 64 bit architecture. That is the reason why my adb is showing errors for files that already exist in my system.
Now to remove these errors i first needed to correct my gcc and then work my way up in order to install all the required 32 bit architecture libraries.
So now i will explain how i solved my problem.
NOTE: This worked for my computer and i am not sure if it is going to work on every PC. But i think it will work on almost all PCs.
Let's Go.
Run the following commands.
1. sudo apt-get install gcc-4.8base=4.8.2-19ubuntu1
Now if you are getting the following error:
The following packages have unmet dependencies:
indicator-bluetooth : Depends: unity-control-center but it is not going to be installed or
gnome-control-center but it is not going to be installed or
ubuntu-system-settings but it is not going to be installed
libdee-1.0-4 : Depends: libicu52 (>= 52~m1-1~) but it is not going to be installed
system-image-dbus : Depends: system-image-common (= 2.2-0ubuntu1) but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
Next run the following command:
2. apt-cache policy libicu52 libdee-1.0-4 system-image-dbus system-image-common
Now check if you are getting the following output:
libicu52:
Installed: 52.1-3ubuntu0.3
Candidate: 52.1-3ubuntu0.3
Version table:
*** 52.1-3ubuntu0.3 0
500 security.ubuntu.com/ubuntu trusty-security/main amd64 Packages
100 /var/lib/dpkg/status
52.1-3 0
500 in.archive.ubuntu.com/ubuntu trusty/main amd64 Packages
libdee-1.0-4:
Installed: 1.2.7+14.04.20140324-0ubuntu1
Candidate: 1.2.7+14.04.20140324-0ubuntu1
Version table:
*** 1.2.7+14.04.20140324-0ubuntu1 0
500 in.archive.ubuntu.com/ubuntu trusty/main amd64 Packages
100 /var/lib/dpkg/status
system-image-dbus:
Installed: (none)
Candidate: 2.2-0ubuntu1
Version table:
2.2-0ubuntu1 0
If you are with me up to this point. Then this means that you have really messed up your system. From this point onwards we will first try to fix our system.
Run the following two commands:
3. sudo sed -i.bak 's/http:\/\/in./http:\/\//' /etc/apt/sources.list
4. sudo apt-get update
After this is done.
Execute these two commands
5. sudo apt-get install system-image-dbus
6. sudo apt-get install system-image-common
Now after this run the following command:
7. sudo apt-get install gcc-4.8-base=4.8.2-19ubuntu1
If this file gets installed on your PC without any problem then you are basically done. You don't need to go ahead with this. But if your system prints out the following error
The following packages have unmet dependencies:
indicator-bluetooth : Depends: unity-control-center but it is not going to be installed or
gnome-control-center but it is not going to be installed or
ubuntu-system-settings but it is not going to be installed
libdee-1.0-4 : Depends: libicu52 (>= 52~m1-1~) but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
If you encounter this error then run the following command.
8. sudo apt-get install --reinstall libicu52
9. sudo apt-get install libdee-1.0-4
10. sudo apt-get dist-upgrade
Now this last command might take some time depending on your internet connection.
After this is done... Follow the below sets of instructions and you are done.
Start Software & Updates
Select the tab Updates
Select Recommended updates (trusty-updates) (In my screenshot it's vivid-updates, but that's just an example)
And click Close
Click Reload in this dialog
Now upgrade your system (again ;))
sudo apt-get dist-upgrade
And install
sudo apt-get install libstdc++6
And after this you are good to go.. :)
Thank You
I've installed Android Studio 1.2, and created a new project. When I attempt to build, it hangs. This is in the Gradle Console, along with about 20 other copies, with different numbers after png-cruncher_:
Exception in thread "png-cruncher_2" java.lang.RuntimeException: Timed out while waiting for slave aapt process, try setting environment variable SLAVE_AAPT_TIMEOUT to a value bigger than 5 seconds
at com.android.builder.png.AaptProcess.waitForReady(AaptProcess.java:104)
at com.android.builder.png.QueuedCruncher$1.creation(QueuedCruncher.java:107)
at com.android.builder.tasks.WorkQueue.run(WorkQueue.java:204)
at java.lang.Thread.run(Thread.java:745)
I had the same problem with Debian Jessie for AMD64. I did this, and it works:
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install libncurses5:i386 libstdc++6:i386 zlib1g:i386
I had the same issue whilst running Android Studio 1.5.1 for Windows 8.1 (64 bit), and what I did to solve the problem was by adding the following two system environment variables:
SLAVE_AAPT_TIMEOUT = 30
JAVA_HOME = C:\Program Files\Java\jdk1.8.0_65
(Please note: The path for the JAVA_HOME system environment variable is dependant on where your JDK is located and that the version of your JDK may differ from the example above).
I had this problem on Windows 8.1 64 bits and what ended up solving everything was running gradle in the command line in debug mode, on the project folder:
gradlew -d assembleDebug
Running without the -d flag had the same problem.
After running the first time, everything was ok, I could even clean and rebuild my project.
I had this problem and what was missing were a library to be installed on the SDK.
Just installing the correct library immediately solved the problem.
In my case was the Android Support Library, as I was creating a navigation drawer.
The errors shown in the gradle console didn't give me a clue for the solution, and didn't helped me at all.
Click on SDK manager, and click on the tab SDK Tools, check "Android Support Library" and click apply.
This is a known bug reported here --> https://code.google.com/p/android/issues/detail?id=188627
The workaround on Mac is to reboot your computer.
If you are running on a Linux x64 machine you probably miss some required libraries. The offical sdk guide states:
Required libraries for 64-bit machines:
If you are running a 64-bit version of Ubuntu, you need to install some 32-bit libraries with the following command:
sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 lib32z1 lib32bz2-1.0
If you are running 64-bit Fedora, the command is:
sudo yum install zlib.i686 ncurses-libs.i686 bzip2-libs.i686
of course don't forget to
sudo apt-get update
first.
By pausing the antivirus I don't have anymore that problem, or better by making a rule at the antivirus in order to accept a given '.class' filename recognized as trojan, then banned at compile-time.
Check your firewall if it is coming in your way. Disabling my firewall works for me but i don't know if it's the right fix.
I had the same problem with CentOS 6.5. Before this error, I found the cause of the error, as follows.
AAPT err(Facade for 1129807373): xxx/aapt: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by xxx/lib64/libc++.so)
“libc.so.6: version `GLIBC_2.14' not found” . The highest version of CentOS 6.5 is 2.12, and we need to upgrade to 2.14.
Display the installed glibc version:
# rpm -qa | grep glibc
To download the corresponding RPM package. -> ftp.redsleeve.org/pub/steam/
Install the RPM package as follows:
# rpm -Uvh glibc-2.15-60.el6.x86_64.rpm glibc-common-2.15-60.el6.x86_64.rpm glibc-devel-2.15-60.el6.x86_64.rpm glibc-headers-2.15-60.el6.x86_64.rpm --nodeps --force
I uninstalled 1.2 and installed 1.1, but it did't work.
Because I used local SDK installed previously, I uninstalled and reinstalled 1.1 and installed SDK to new path.
After I used SDK in new path, I don't have those errors any more.
And I upgraded Android Studio to 1.2, and also I don't have errors.
Downgrading Build Tools rescued me.
I've installed Android Studio 1.2, and created a new project. When I attempt to build, it hangs. This is in the Gradle Console, along with about 20 other copies, with different numbers after png-cruncher_:
Exception in thread "png-cruncher_2" java.lang.RuntimeException: Timed out while waiting for slave aapt process, try setting environment variable SLAVE_AAPT_TIMEOUT to a value bigger than 5 seconds
at com.android.builder.png.AaptProcess.waitForReady(AaptProcess.java:104)
at com.android.builder.png.QueuedCruncher$1.creation(QueuedCruncher.java:107)
at com.android.builder.tasks.WorkQueue.run(WorkQueue.java:204)
at java.lang.Thread.run(Thread.java:745)
I had the same problem with Debian Jessie for AMD64. I did this, and it works:
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install libncurses5:i386 libstdc++6:i386 zlib1g:i386
I had the same issue whilst running Android Studio 1.5.1 for Windows 8.1 (64 bit), and what I did to solve the problem was by adding the following two system environment variables:
SLAVE_AAPT_TIMEOUT = 30
JAVA_HOME = C:\Program Files\Java\jdk1.8.0_65
(Please note: The path for the JAVA_HOME system environment variable is dependant on where your JDK is located and that the version of your JDK may differ from the example above).
I had this problem on Windows 8.1 64 bits and what ended up solving everything was running gradle in the command line in debug mode, on the project folder:
gradlew -d assembleDebug
Running without the -d flag had the same problem.
After running the first time, everything was ok, I could even clean and rebuild my project.
I had this problem and what was missing were a library to be installed on the SDK.
Just installing the correct library immediately solved the problem.
In my case was the Android Support Library, as I was creating a navigation drawer.
The errors shown in the gradle console didn't give me a clue for the solution, and didn't helped me at all.
Click on SDK manager, and click on the tab SDK Tools, check "Android Support Library" and click apply.
This is a known bug reported here --> https://code.google.com/p/android/issues/detail?id=188627
The workaround on Mac is to reboot your computer.
If you are running on a Linux x64 machine you probably miss some required libraries. The offical sdk guide states:
Required libraries for 64-bit machines:
If you are running a 64-bit version of Ubuntu, you need to install some 32-bit libraries with the following command:
sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 lib32z1 lib32bz2-1.0
If you are running 64-bit Fedora, the command is:
sudo yum install zlib.i686 ncurses-libs.i686 bzip2-libs.i686
of course don't forget to
sudo apt-get update
first.
By pausing the antivirus I don't have anymore that problem, or better by making a rule at the antivirus in order to accept a given '.class' filename recognized as trojan, then banned at compile-time.
Check your firewall if it is coming in your way. Disabling my firewall works for me but i don't know if it's the right fix.
I had the same problem with CentOS 6.5. Before this error, I found the cause of the error, as follows.
AAPT err(Facade for 1129807373): xxx/aapt: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by xxx/lib64/libc++.so)
“libc.so.6: version `GLIBC_2.14' not found” . The highest version of CentOS 6.5 is 2.12, and we need to upgrade to 2.14.
Display the installed glibc version:
# rpm -qa | grep glibc
To download the corresponding RPM package. -> ftp.redsleeve.org/pub/steam/
Install the RPM package as follows:
# rpm -Uvh glibc-2.15-60.el6.x86_64.rpm glibc-common-2.15-60.el6.x86_64.rpm glibc-devel-2.15-60.el6.x86_64.rpm glibc-headers-2.15-60.el6.x86_64.rpm --nodeps --force
I uninstalled 1.2 and installed 1.1, but it did't work.
Because I used local SDK installed previously, I uninstalled and reinstalled 1.1 and installed SDK to new path.
After I used SDK in new path, I don't have those errors any more.
And I upgraded Android Studio to 1.2, and also I don't have errors.
Downgrading Build Tools rescued me.
I tried installing android studio in ubuntu 12.04 using the following commands
sudo apt-add-repository ppa:paolorotolo/android-studio
sudo apt-get update
sudo apt-get install android-studio
however the installation fails with the error "The following sdk component was not installed:tools"
Note:
I have also tried running using sudo ./studio.sh, but the problem remains
Also Changing proxy settings didn't work
Any help regarding this is appreciated.Thanks
I have been trying to install android studio on Ubuntu 14.04 (64)
I have followed these steps.
From the terminal I typed:
sudo add-apt-repository ppa:paolorotolo/android-studio
sudo apt-get update
sudo apt-get install android-studio
It installed so I found it using
dpkg -L android-studio
The application was installed in /usr/share/applications/android-studio which I physically clicked on from nautilus - which started the setup wizzard. I clicked standard install.
It took a long time downloading the entire sdk but once it was fully downloaded it gave me this message:
Android SDK is up to date.
Creating Android virtual device
Unable to access SDK
And gave me just the option to finish which closed the setup wizzard.
I tried the whole process again as root (sudo nautilus and again physically clicking on the application icon). It downloaded the whole sdk a second time - and gave the same error.
I'm not sure if this is a Ubuntu problem, an Android Studio problem or just a me problem. Please help.
I'm using the Android Studio under Ubuntu since February and I'm always installing it the same way:
Download zip archive here
Unzip it
Move unpacked Studio to /opt dir
Run /opt/android-studio/bin/studio.sh
After that I usually go to Tools -> Create desktop entry... and creating the AS entry in Unity launcher. Works without any issues.
OK it has been a lot of searching but it appears the problem is that the adb and some other sdk tools still use some 32 bit libraries which have been deprecated and are no longer supplied with the latest version of Ubuntu 64
Hopefully this issue will be resolved soon in the meantime I got it working with:
$ sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0
$ sudo apt-get install apt-get install lib32stdc++6
And so far it is working as expected.