LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Compiling Easymp3gain from source error (https://www.linuxquestions.org/questions/slackware-14/compiling-easymp3gain-from-source-error-881075/)

neruson 05-16-2011 05:45 PM

Compiling Easymp3gain from source error
 
Hello, I'm running Salix Xfce 13.37 amd64 which is compatible with Slackware 13.37 so I'm assuming this is the correct place to post this ;)

I know that in order to compile easymp3gain you must have both fpc and lazarus installed. I have both of those, so I thought 'great! now i can start building easymp3gain!' but I keep getting this error when running the make command:

Code:

root@darkstar:/home/neruson/Downloads/easymp3gain-0.5.0# make
chmod +x ./make.sh
./make.sh
Target architecture: x86_64
Target operating system: linux
Compiler version: 2.4.2
Building easyMP3Gain ...
./make.sh: line 36: lazbuild: command not found
make: *** [all] Error 127
root@darkstar:/home/neruson/Downloads/easymp3gain-0.5.0#

Like I said, I've already compiled and installed Lazarus, so I'm not sure why I'm getting this error...

I know how to use mp3gain with my terminal but I've always liked the GUI for it and would prefer to have it.

ponce 05-17-2011 12:18 AM

seems to work fine here.

I installed from slackbuilds.org fpc and lazarus: just changed this last slackbuild a little to let it build on x86_64 (seems to work fine but I'm on multilib so it needs testing on a pure 64bit slack)
Code:

--- lazarus.SlackBuild.orig    2010-05-27 06:51:05.000000000 +0200
+++ lazarus.SlackBuild  2011-05-17 07:12:29.567656111 +0200
@@ -23,10 +23,17 @@
 
 PRGNAM=lazarus
 VERSION=${VERSION:-0.9.28.2}
-# We'll define ARCH in just a bit...
 BUILD=${BUILD:-1}
 TAG=${TAG:-_SBo}
 
+if [ -z "$ARCH" ]; then
+  case "$( uname -m )" in
+    i?86) ARCH=i386 ;;
+    arm*) ARCH=arm ;;
+      *) ARCH=$( uname -m ) ;;
+  esac
+fi
+
 LCL=${LCL:-gtk2}
 
 CWD=$(pwd)
@@ -34,12 +41,6 @@
 PKG=$TMP/package-$PRGNAM
 OUTPUT=${OUTPUT:-/tmp}
 
-if [ "$ARCH" = "x86_64" ]; then
-  printf "\nThis won't build on $ARCH.\n\n";exit 1
-else
-  ARCH=i386
-fi
-
 set -e
 
 rm -rf $PKG

maybe your problem is that it cannot find the lazarus binaries: if you have a look at the slackbuild, you can see that some links are created to let it work from the install location
Code:

# fix links at /usr/bin
( cd $PKG/usr/bin
  ln -sf ../share/lazarus/lazarus
  ln -sf ../share/lazarus/lazbuild
  ln -sf ../share/lazarus/startlazarus
)



All times are GMT -5. The time now is 01:44 AM.