# Compiling VirtualBox with error âmakeself not found!"

**URL:** <https://forums.suse.com/t/compiling-virtualbox-with-error-a-makeself-not-found/34788>\
**Category:** SLES Configure-Administer\
**Created:** [February 19, 2020, 11:52am UTC](https://forums.suse.com/t/compiling-virtualbox-with-error-a-makeself-not-found/34788 "2020-02-19T11:52:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![yuhuihu](https://avatars.discourse-cdn.com/v4/letter/y/47e85d/32.png) [@yuhuihu](https://forums.suse.com/u/yuhuihu)\
**Post date:** [February 19, 2020, 11:52am UTC](https://forums.suse.com/t/compiling-virtualbox-with-error-a-makeself-not-found/34788/1 "2020-02-19T11:52:06Z")

</div>

I compiled VirtualBox with error makeself (variable makeself) not found! on SLES15.1.  
The value of $MAKESELF was makeself, which was already initiated, and below lines were already added into global user profile.

`alias makeself='/opt/makeself-2.4.0/makeself.sh'
export MAKESELF=/opt/makeself-2.4.0/
export PATH=$PATH:JAVA_HOME/bin:/opt/makeself-2.4.0/`

And verified with below.

[CODE]james\> which makeself  
which: no makeself in (/home/james/bin:/usr/local/bin:/usr/bin:/bin:JAVA\_HOME/bin:/opt/makeself-2.4.0/)

james\> which makeself.sh  
/usr/bin/makeself.sh

james\> whereis makeself  
makeself: /usr/bin/makeself.sh /opt/makeself-2.4.0/makeself.1 /opt/makeself-2.4.0/makeself.lsm /opt/makeself-2.4.0/makeself.sh

james\> makeself  
Usage: /opt/makeself-2.4.0/makeself.sh [params] archive\_dir file\_name label startup\_script [args]  
…[/CODE]

I am confused on how to let check\_avail() return true and pass the IF check in check\_makeself(). $MAKESELF is there and command makeself is also there. Please advise and thanks in advance.

[CODE] check\_makeself()  
{  
test\_header “makeself”  
if check\_avail “$MAKESELF” makeself; then  
makeself\_ver=`$MAKESELF --version|grep version|sed 's+^Makeself.*version \\([0-9\\.]*\\).*+\\1+'`  
if [$? -ne 0]; then  
log\_failure “makeself not working”  
fail  
else  
log\_success “found version $makeself\_ver”  
cnf\_append “VBOX\_MAKESELF” “`which_wrapper $MAKESELF`”  
fi  
fi  
}

```
test_header()
{
  echo " *****Checking $1*****" >> $LOG
  $ECHO_N "Checking for $1: "
}

check_avail()
{
   if [-z "$1"]; then
     log_failure "$2 is empty"
     fail $3
     return 1
   elif which_wrapper $1 > /dev/null; then
     return 0
   else
     log_failure "$1 (variable $2) not found"
     fail $3
     return 1
   fi
}

```

yuhuihu

```
Posts: 1
Joined: 19. Feb 2020, 04:25

```

Top  
[/CODE]
