krlmlr / r-appveyor

Tools for using R with AppVeyor (https://appveyor.com)
132 stars 60 forks source link

How to install GTK+? [Installation hangs; reaches 1 hour limit] #48

Open cwatson opened 8 years ago

cwatson commented 8 years ago

Hello, I tried using r-appveyor for my package, but it hangs at the step that says:

"* checking whether package 'brainGraph' can be installed ..."

My appveyor page is: https://ci.appveyor.com/project/cwatson/brainGraph

I don't see any error messages or anything I can use to diagnose the problem. Any thoughts?

Thanks, Chris

krlmlr commented 8 years ago

Perhaps something waits for user input. Perhaps you could RDP into the worker and see what's happening. I don't think this is an r-appveyor problem.

cwatson commented 8 years ago

Thanks. I tried this, and when I RDP in, there is an error: "The program can't start because libatk-1.0.0.dll" is missing from your computer. Try reinstalling the program to fix this problem."

This seems to be an error with "RTerm.exe".

Chris

On Tue, Dec 29, 2015 at 3:16 PM, Kirill Müller notifications@github.com wrote:

Perhaps something waits for user input. Perhaps you could RDP into the worker http://www.appveyor.com/docs/how-to/rdp-to-build-worker and see what's happening. I don't think this is an r-appveyor problem.

— Reply to this email directly or view it on GitHub https://github.com/krlmlr/r-appveyor/issues/48#issuecomment-167867516.

krlmlr commented 8 years ago

Your package depends on RGtk2. It might help to install it beforehand:

build_script:
  - Rscript -e "install.packages('RGtk2', repos = '...')"
  - travis-tool.sh install_deps

Reference: http://rattle.togaware.com/rattle-install-troubleshooting.html

cwatson commented 8 years ago

Thanks for your suggestion Kirill. I suspected RGtk2 would be an issue. I added what you recommended, but I still see the same error message when I RDP in. Any other thoughts?

Chris

On Fri, Jan 1, 2016 at 9:06 AM, Kirill Müller notifications@github.com wrote:

Your package depends on RGtk2. It might help to install it beforehand:

build_script:

  • Rscript -e "install.packages('RGtk2', repos = '...')"
  • travis-tool.sh install_deps

Reference: http://rattle.togaware.com/rattle-install-troubleshooting.html

— Reply to this email directly or view it on GitHub https://github.com/krlmlr/r-appveyor/issues/48#issuecomment-168308922.

krlmlr commented 8 years ago

Mind if I look into your current build via RDP?

cwatson commented 8 years ago

Not at all. It is ~20 minutes into the process right now.

Thanks, Chris

On Sat, Jan 2, 2016 at 4:08 PM, Kirill Müller notifications@github.com wrote:

Mind if I look into your current build via RDP?

— Reply to this email directly or view it on GitHub https://github.com/krlmlr/r-appveyor/issues/48#issuecomment-168428281.

krlmlr commented 8 years ago

Installing RGtk2 doesn't seem to be enough -- the auto-installation process happens only when trying to load the package. This is what I saw when running R in a console:

> library(RGtk2)

Error in inDL(x, as.logical(local), as.logical(now), ...) :
  unable to load shared object 'D:/R/site-library/RGtk2/libs/x64/RGtk2.dll':
  LoadLibrary failure:  The specified module could not be found.

A dialog pops up, prompting to install GTK+. OK:

trying URL 'http://ftp.gnome.org/pub/gnome/binaries/win64/gtk+/2.22/gtk+-bundle_2.22.1-20101229_win64.zip'
Content type 'application/zip' length 25830230 bytes (24.6 MB)
downloaded 24.6 MB

Learn more about GTK+ at http://www.gtk.org
If the package still does not load, please ensure that GTK+ is installed and tha
t it is on your PATH environment variable
IN ANY CASE, RESTART R BEFORE TRYING TO LOAD THE PACKAGE AGAIN

You might need to install GTK+ manually after all.

To actually run R, I had to do the following in the console first:

c:\> set PATH=E:\Rtools\bin;E:\Rtools\MinGW\bin;E:\Rtools\gcc-4.6.3\bin;D:\R\bin\i386;C:\MinGW\msys\1.0\bin;C:\Program Files (x86)\Git\bin;C:\Perl\site\bin;C:\Perl\bin;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\bin;C:\Program Files\Google\Compute Engine\sysprep\;C:\Program Files\Google\Compute Engine\metadata_scripts\;C:\ProgramData\chocolatey\bin;C:\Program Files\Microsoft\Web Platform Installer\;C:\Tools\GitVersion;C:\Tools\PsTools;C:\Program Files\7-Zip;C:\Program Files\Git\cmd;C:\Program Files\Git\usr\bin;C:\Program Files\Mercurial;C:\Program Files (x86)\Subversion\bin;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\110\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files\Microsoft SQL Server\120\DTS\Binn\;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.4\;C:\Program Files (x86)\Microsoft SDKs\Azure\CLI\wbin;C:\Tools\WebDriver;C:\Tools\NUnit\bin;C:\Tools\xUnit;C:\Tools\MSpec;C:\Tools\Coverity\bin;C:\Program Files\nodejs;C:\Program Files (x86)\iojs;C:\Program Files\iojs;C:\Users\appveyor\AppData\Roaming\npm;C:\Program Files (x86)\CMake\bin;C:\go\bin;C:\Program Files\Java\jdk1.8.0\bin;C:\Python27;C:\Ruby193\bin;C:\Program Files\erl7.1\bin;C:\Users\appveyor\.dnx\bin;C:\Program Files\Microsoft DNX\Dnvm\;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;C:\Program Files (x86)\MSBuild\14.0\Bin;C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\CommonExtensions\Microsoft\TestWindow;C:\Tools\NuGet3;C:\Program Files\Amazon\AWSCLI\;C:\Program Files\Microsoft Windows Performance Toolkit\;C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\SQLDB\DAC\120;C:\Program Files (x86)\Microsoft Emulator Manager\1.0\;C:\Tools\NUnit3\bin;C:\Program Files (x86)\Microsoft SQL Server\120\Tools\Binn\ManagementStudio\;C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\PrivateAssemblies\;C:\Program Files (x86)\Microsoft SQL Server\120\DTS\Binn\;C:\Program Files (x86)\nodejs\;C:\Users\appveyor\.dnx\runtimes\dnx-clr-win-x86.1.0.0-rc1-final\bin;C:\Users\appveyor\AppData\Roaming\npm;C:\Program Files\AppVeyor\BuildAgent\
krlmlr commented 8 years ago

Were you able to install GTK+ in AppVeyor?

cwatson commented 8 years ago

Hi, unfortunately I currently don't have the time to dedicate to this issue so I have had to put it on the backburner. I appreciate your assistance, though.

Chris

On Mon, Feb 15, 2016 at 4:04 AM, Kirill Müller notifications@github.com wrote:

Were you able to install GTK+ in AppVeyor?

— Reply to this email directly or view it on GitHub https://github.com/krlmlr/r-appveyor/issues/48#issuecomment-184122634.

krlmlr commented 8 years ago

Thanks for your feedback. I'll keep this open for reference.

JanMarvin commented 4 years ago

I have a working implementation overe here

download a zip file, add it to PATH and build with --no-mulitarch

ask53 commented 4 years ago

@JanMarvin this is amazing. I've been struggling for days with this issue after updating R to 4.0.2 from 3.2.

I was having trouble specifically with gWidgetsRGtk2, which other builds of RQDA seem to require. I appreciate your switch to gWidgets2RGtk2.

The clear downloading instructions (for Windows, at least) in your repo README worked for me.

Thank you!!!

nhacki commented 4 years ago

@JanMarvin the comment from ask53 directed me to your repo and helped me reinstall a working version of RQDA. I had also updated R4.0.3 from 3.6.2 and could not load RQDA. It is now working and its the "better-looking" version; I had an older version.

Thank you.