Jump to content
TrinityCore
SimonKaru

MacOSX El Capitan - xcodebuild -target install -config Release ERROR

Recommended Posts

Hi!
I'm new to c++ programming and TC installation. I've been following all the directions and when I need to input the code "xcodebuild -target install -config Release" I get the following error message :

=== BUILD AGGREGATE TARGET install OF PROJECT TrinityCore WITH CONFIGURATION Debug ===

 

Check dependencies

 

PhaseScriptExecution CMake\ PostBuild\ Rules /Users/<username>/trinity/build/TrinityCore.build/Debug/install.build/Script-D663B11FF8DF4EC1A2D72E44.sh

    cd /Users/<username>/trinity/repo

    /bin/sh -c /Users/<username>/trinity/build/TrinityCore.build/Debug/install.build/Script-D663B11FF8DF4EC1A2D72E44.sh

/usr/local/Cellar/cmake/3.8.1/bin/cmake -DBUILD_TYPE=Debug -P cmake_install.cmake

-- Install configuration: "Debug"

-- Installing: /bin/bnetserver

CMake Error at src/server/bnetserver/cmake_install.cmake:32 (file):

  file INSTALL cannot copy file

  "/Users/<username>/trinity/build/src/server/bnetserver/Debug/bnetserver" to

  "/bin/bnetserver".

Call Stack (most recent call first):

  src/server/cmake_install.cmake:35 (include)

  src/cmake_install.cmake:34 (include)

  cmake_install.cmake:33 (include)

 

 

make: *** [install_buildpart_0] Error 1

Command /bin/sh failed with exit code 2

 

** BUILD FAILED **

 

 

The following build commands failed:

    PhaseScriptExecution CMake\ PostBuild\ Rules /Users/<username>/trinity/build/TrinityCore.build/Debug/install.build/Script-D663B11FF8DF4EC1A2D72E44.sh

(1 failure)

 

I've tried everything I could think of :

Run the command with sudo from an admin account;

Run the command from an admin account;

Run the command from the root user;

paste the bnetserver file in the bin directory myself...

 

I've looked everywhere and nobody seems to have the same problem I encountered. Please help...

 

I have an iMac(20-inch, Early 2008) running OS X El Capitan version 10.11.6

Homebrew and all the core requirements are correctly installed counting as well the correct version of XCode.

Edited by SimonKaru

Share this post


Link to post
Share on other sites

Try changing the install dir to your user directory with -DCMAKE_INSTALL_PREFIX

Share this post


Link to post
Share on other sites

Hi Nay! I've tried this and it cannot read a file from the openssl library... I've installed it with homebrew, here's the message:

CMake Error at cmake/macros/FindOpenSSL.cmake:191 (file):

  file STRINGS file "/usr/local/ssl/openssl/opensslv.h" cannot be read.

Call Stack (most recent call first):

  dep/openssl/CMakeLists.txt:16 (find_package)

 

 

CMake Error at cmake/macros/FindOpenSSL.cmake:203 (list):

  list GET given empty list

Call Stack (most recent call first):

  dep/openssl/CMakeLists.txt:16 (find_package)

 

 

CMake Error at cmake/macros/FindOpenSSL.cmake:204 (list):

  list GET given empty list

Call Stack (most recent call first):

  dep/openssl/CMakeLists.txt:16 (find_package)

 

 

CMake Error at cmake/macros/FindOpenSSL.cmake:205 (list):

  list GET given empty list

Call Stack (most recent call first):

  dep/openssl/CMakeLists.txt:16 (find_package)

 

 

CMake Error at cmake/macros/FindOpenSSL.cmake:206 (list):

  list GET given empty list

Call Stack (most recent call first):

  dep/openssl/CMakeLists.txt:16 (find_package)

 

 

CMake Error at cmake/macros/EnsureVersion.cmake:76 (MATH):

  math cannot parse the expression: "..`*10000 + ..`*100 + 0": syntax error,

  unexpected exp_TIMES, expecting exp_PLUS or exp_MINUS or exp_OPENPARENT or

  exp_NUMBER (4)

Call Stack (most recent call first):

  cmake/macros/EnsureVersion.cmake:111 (NORMALIZE_VERSION)

  cmake/macros/FindOpenSSL.cmake:224 (ENSURE_VERSION_RANGE)

  dep/openssl/CMakeLists.txt:16 (find_package)

 

 

CMake Error at cmake/macros/FindOpenSSL.cmake:226 (message):

  TrinityCore needs OpenSSL version 1.0 but found version ..`

Call Stack (most recent call first):

  dep/openssl/CMakeLists.txt:16 (find_package)

 

 

-- Configuring incomplete, errors occurred!

See also "/Users/<username>/Trinity/repo/cmake/CMakeFiles/CMakeOutput.log".

 

Again, I'm using an admin account, but all the permissions seem to be broken.

I've used the command cmake -DCMAKE_INSTALL_PREFIX=/usr .. -DOPENSSL_INCLUDE_DIR=/usr/local/ssl because it couldn't find the openssl library before.

Could you maybe take the time to guide me through it?

Simply writing the commands I should be using, so I don't mess up the configuration even more?

Share this post


Link to post
Share on other sites

If this was a regular linux I would just tell you to run

make install

step with sudo because you are trying to put files into a system dir

Share this post


Link to post
Share on other sites

There's not a lot of us running OS X... have you seen 

?

Share this post


Link to post
Share on other sites

Yes, I've followed the guide in question and get the same build path problem... There might be something wrong with the way I installed openssl, but I wouldn't understand how, due to the fact that it was all automatic.

Share this post


Link to post
Share on other sites

@Nay @Shauren, Thank you very much for your help!
I found the best solution to be to simply delete and uninstall everything and restart again, whilst only following the instructions for homebrew. I made the trinity folder directly on the desktop.. Maybe that helped. But yeah, problem solved for now.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By Marethyu
      i'm getting this :
      /Users/wow/TrinityCore/src/server/database/Database/DatabaseWorkerPool.cpp:32 in DatabaseWorkerPool FATAL ERROR:
        Used MySQL library version (5.6.21) does not match the version used to compile TrinityCore (5.4.1-beta).
      Segmentation fault: 11
      logout
      i would like more details about :
      I can't run Trinitycore, i get Used MySQL library version (x.x.xx) does not match the version used to compile TrinityCore (x.x.xy)
      Copy the dlls from your build directory to where you are running core.
      i don't understand everythings like where in core must i copy the libs of mysql ? 
×