Hi zeltak, this may be because you don't have java or ANT installed or configured on the system correctly - the script used to sort this but it was changed to just give an error, because it went and altered a persons files ad made an unmanaged link so was deemed bad practice, and so I implemented a method suggested by jwolkin below in his git version of this package. I'm not 100 % sure on what a person should do if this is indeed the cause of the error - myself I used the PKGBUILD back when it created the link so all other versions up to now work for my machine - which makes it difficult to determine if others will have issues. If this is indeed the source of the error I think what you need to do is make sure ant is on the PATH. If it is not the error then I'm unsure - it's a completely new one to me. There is a forum thread here https://bbs.archlinux.org/viewtopic.php?id=114333&p=3 which has discussion of building r-studio. An alternative would be to set up a github account and see if the git version does the same thing.
Search Criteria
Package Details: rstudio-desktop 2024.09.1.394-1
Package Actions
Git Clone URL: | https://aur.archlinux.org/rstudio-desktop.git (read-only, click to copy) |
---|---|
Package Base: | rstudio-desktop |
Description: | A powerful and productive integrated development environment (IDE) for R programming language |
Upstream URL: | https://github.com/rstudio/rstudio |
Licenses: | AGPL-3.0-only |
Conflicts: | rstudio-desktop |
Provides: | rstudio-desktop |
Submitter: | None |
Maintainer: | xiota |
Last Packager: | xiota |
Votes: | 73 |
Popularity: | 0.047006 |
First Submitted: | 2011-03-04 15:02 (UTC) |
Last Updated: | 2024-11-11 05:37 (UTC) |
Dependencies (29)
- boost-libs
- dbus (dbus-gitAUR, dbus-selinuxAUR)
- hicolor-icon-theme (hicolor-icon-theme-gitAUR)
- hunspell-en_US (hunspell-en_us)
- libcups (libcups-gitAUR, cups-gitAUR, libcups-gssapiAUR)
- mathjax2
- nspr (nspr-hgAUR)
- nss (nss-hgAUR)
- pandoc (pandoc-sile-gitAUR, pandoc-static-gitAUR, pandoc-binAUR, pandoc-cli)
- r (r352AUR, r-mklAUR)
- apache-ant (ant-gitAUR, ant) (make)
- boost (boost-gitAUR) (make)
- cmake (cmake-gitAUR) (make)
- git (git-gitAUR, git-glAUR) (make)
- jdk11-openjdk (jdk11-temurinAUR) (make)
- libcups (libcups-gitAUR, cups-gitAUR, libcups-gssapiAUR) (make)
- ninja (ninja-kitwareAUR, ninja-memAUR, ninja-fuchsia-gitAUR, ninja-gitAUR, ninja-jobserverAUR) (make)
- nvmAUR (nvm-gitAUR) (make)
- openssl (openssl-gitAUR, openssl-staticAUR) (make)
- pam (pam-selinuxAUR) (make)
- python (python37AUR, python311AUR, python310AUR) (make)
- python-setuptools (make)
- wget (wget-gitAUR, wurlAUR) (make)
- yarn (yarn-pnpm-corepackAUR, corepackerAUR, yarn-berryAUR) (make)
- git (git-gitAUR, git-glAUR) (optional) – for git support
- nodejs (nodejs-lts-fermiumAUR, nodejs-gitAUR, python-nodejs-wheelAUR, nodejs-lts-hydrogen, nodejs-lts-iron) (optional) – for copilot support
- openssh-askpassAUR (optional) – for a git ssh access
- quarto (quarto-cli-gitAUR, quarto-cliAUR, quarto-cli-pre-releaseAUR, quarto-cli-bin-pre-releaseAUR, quarto-cli-binAUR) (optional) – for Quarto projects support
- subversion (optional) – for subversion support
Required by (0)
Sources (3)
Latest Comments
« First ‹ Previous 1 .. 23 24 25 26 27 28 29 Next › Last »
<deleted-account> commented on 2011-03-18 15:05 (UTC)
zeltak commented on 2011-03-16 16:16 (UTC)
Hi
im a neewb trying to install r-studio. i get this error :
-> Extracting v0.93.35 with bsdtar
==> Starting build()...
which: no ant in (/home/zeltak/bin/scrot:/home/zeltak/bin:/home/zeltak/bin/scrot:/home/zeltak/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/lib/perl5/site_perl/bin:/usr/bin/vendor_perl:/usr/lib/perl5/vendor_perl/bin:/usr/bin/core_perl)
Aborting...
The build failed
is there someway to fix it?
thx
Z.
jelly commented on 2011-03-15 11:12 (UTC)
export CXXFLAGS="${CXXFLAGS} -DBOOST_FILESYSTEM_VERSION=2"
before ./configure, to fix the boost errors
jelly commented on 2011-03-15 11:01 (UTC)
did you notice GWT is in AUR?
<deleted-account> commented on 2011-03-14 21:07 (UTC)
I was working on a way to check for ant and java and the method reztho is what first occurred to me, but it doesn't quite work as expected since makepkg will now exit immediately upon an error. So if we test the exit code for an error and then output a message, makepkg will exit immediately upon the error and the message will never get printed. This is the compromise I think works well:
# Check if ant and java can be found
msg "Checking if java and ant are on the PATH...."
which ant > /dev/null
which java > /dev/null
This will output nothing if ant and java are found (stdout goes to /dev/null), but if they are not found an error message will be printed by "which" to stderr and then makepkg will exit as a result of which not returning 0.
<deleted-account> commented on 2011-03-14 19:42 (UTC)
The ant link was my fault :P It was a hack to get it working the first time, but I did not include it in my rstudio git pkbuild, I should have noted on the forum that it was a bad idea. The warning is a much more sane way to handle this, I only have a note in the comments of the git pkgbuild.
<deleted-account> commented on 2011-03-10 20:24 (UTC)
Thanks reztho, I've altered it and it'll be uploaded later when it's no longer peak time here. I did wonder about it, because it was included in the forum dedicated to this, but when I built the package manually first hand from source, the first time it worked I didn't do anything about ant.
reztho commented on 2011-03-10 17:21 (UTC)
# link apache ant?
if [ ! -e /usr/bin/ant ] ; then
msg "Creating a link so that make can find apache ant"
ln -s /usr/share/java/apache-ant/bin/ant /usr/bin/ant
fi
For god's sake, do not do that. Makepkg isn't supposed to be run under a root account. And those people who do it are going to have an unmanaged symbolic link by pacman which can make problems in the future.
Instead just check ant is accesible and if it's not, throw a warning message to the user if you want to and exit gracefully. Something like this should work:
which ant &> /dev/null
if [ $? -gt 0 ]; then
msg "whatever"
exit 1
fi
Apache-ant package comes with a bash script (/etc/profile.d/apache-ant.sh) which needs to be sourced before doing anything the first time is installed or the user just needs to relogin for it being sourced automatically.
Makepkg just fakes root perms; it doesn't make a chroot. AUR isn't supposed to be user friendly and it's your responsibility not to mess with people's filesystem, that's why there aren't any AUR helper in community.
<deleted-account> commented on 2011-03-09 05:19 (UTC)
As of boost v 1.46 it breaks the compile, suggesting some major compatibility issue between R-Studio and the latest boost, this has been raised on their support site.
<deleted-account> commented on 2011-03-08 18:01 (UTC)
I believe the current java-runtime dependency should work (i.e. jre or openjdk6 both should be fine). I think the issue you are having might be that the jre package does not put the 'java' executable on the path (I believe it puts it at /opt/java/jre/bin/java by default. You need to add this location to your path if you are using the jre package, otherwise cmake will not be able to find your java installation. The openjdk package however puts the executable right in /usr/bin which is on most everyone's path already, so things will work out of the box.
Pinned Comments
trap000d commented on 2024-05-16 21:42 (UTC) (edited on 2024-05-28 20:09 (UTC) by trap000d)
A note for users.
This package is quite complex. It MAY not be built because of OTHER issues. I always build, install and test it on at least two different machines. Only after that I would push a new version to AUR.
Please try some generic solutions before reporting of build problems:
1) Update all other packages (sudo pacman -Syu),
2) Clean up yay and/or makepkg caches ('yay -Sc', 'rm -rf /var/tmp/makepkg'),
3) Be sure you've got enough RAM (8 GB or more is highly recommended) and space on disk (at least 3 GB).
4) Is your Internet connection is stable, fast and not blocked somewhere?
trap000d commented on 2022-07-05 20:32 (UTC) (edited on 2022-10-03 06:28 (UTC) by trap000d)
PLEASE READ THIS MESSAGE BEFORE COMPLAINING FOR LIBBOOST
When boost is updated to a new version and you see an error message about missing libboost*.so, you will need to rebuild and reinstall the rstudio-desktop package.
trap000d commented on 2022-02-19 06:20 (UTC) (edited on 2022-02-19 06:21 (UTC) by trap000d)
Build logic is slightly changed due to changes in upstream. As they've introduced new project format (quarto), it contradicted with standard Arch package base. In brief, quarto contains pandoc as part of itself, so it's pretty hard to keep together system pandoc and embedded quarto.
So I've "resolved" it such way: if there is "quarto*" package installed, then rstudio-desktop will pick it up and use. Otherwise (not installed), quarto support in rstudio will be disabled.
'quarto' is added as optional dependency.