Hello
I was following building instructions but
`
`
This solution :
Install clang-4.0 and set a higher priority:
update-alternatives --install /usr/bin/clang clang /usr/bin/clang-4.0 400
didn't help:
update-alternatives: используется /usr/bin/clang-4.0 для предоставления /usr/bin/clang (clang) в автоматическом режиме
update-alternatives: ошибка: ошибка создания символьной ссылки «/etc/alternatives/clang.dpkg-tmp»: Permission denied
sorry for Russian. Commonly it is written that used for automatical mode and a failure of creating of symbol link.
I'm totally new to all of the stuff (linux, darling) and hope for understanding. Could someone help please?
Install clang-4.0 and set a higher priority:
update-alternatives --install /usr/bin/clang clang /usr/bin/clang-4.0 400didn't help:
update-alternatives: используется /usr/bin/clang-4.0 для предоставления /usr/bin/clang (clang) в автоматическом режиме update-alternatives: ошибка: ошибка создания символьной ссылки «/etc/alternatives/clang.dpkg-tmp»: Permission denied
You need sudo:
$ sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-4.0 400
But before you do that, what version of clang are you using now? (run clang -v to check) If it's clang 3, go ahead and update it, but if it's _newer_ than 4, then we need to find another way to solve this.
`
`
now it is:
`
fatal: destination path 'darling' already exists and is not an empty directory.
mkdir: cannot create directory ‘build’: File exists
Remember, you already cloned darling and created the build directory. Just cd into the build directory.
fatal: destination path 'darling' already exists and is not an empty directory.
mkdir: cannot create directory ‘build’: File existsRemember, you already cloned darling and created the build directory. Just
cdinto the build directory.
thanks!
but still:
`
`
noname@noname:~$ git clone --recursive https://github.com/darlinghq/darling.git fatal: destination path 'darling' already exists and is not an empty directory. noname@noname:~$ make lkm make: *** No rule to make target 'lkm'. Stop. noname@noname:~$ sudo make lkm_install make: *** No rule to make target 'lkm_install'. Stop. noname@noname:~$ cd darling noname@noname:~/darling$ mkdir build && cd build mkdir: cannot create directory ‘build’: File exists noname@noname:~/darling$ cmake .. CMake Error: The source directory "/home/noname" does not appear to contain CMakeLists.txt. Specify --help for usage, or press the help button on the CMake GUI. noname@noname:~/darling$ make make: *** No targets specified and no makefile found. Stop. noname@noname:~/darling$ sudo make install make: *** No rule to make target 'install'. Stop. noname@noname:~/darling$
I'm sorry to say this 😔, but I think you need way more experience with Unix/Linux before you can hack on Darling if you're running into / cannot figure out problems like these.
When Darling is ready to be used by regular users, it'll be easily installable using whatever way you're used to install software on your system (some sort of Software Center app, for example). But for now, you need _some_ development or advanced user background to install & use it; at least you have to know how to cd around your filesystem.
When you get Darling to build, all that awaits you is another shell, which will be useless to you if you're not familiar with using shells.
If I were you, I would go and learn more about Unix/Linux shell basics, about using git, make/makefiles, CMake, and other stuff; then come back to Darling.
On the actual build error: perhaps try an even newer compiler (clang 8 is out...), or just disable xcbuild in src/CMakeLists.txt (by commenting it out or just deleting the line altogether).
I had the same build error (in FileTypeResolver.cpp) until I did the same thing for clang++:
sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-4.0 400
I had the same build error!
I exec the command @kvanhecke and other!
Like this:
sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-4.0 400
sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-4.0 400
It works!
I documented this on the build instructions page https://wiki.darlinghq.org/build_instructions
Most helpful comment
I'm sorry to say this 😔, but I think you need way more experience with Unix/Linux before you can hack on Darling if you're running into / cannot figure out problems like these.
When Darling is ready to be used by regular users, it'll be easily installable using whatever way you're used to install software on your system (some sort of Software Center app, for example). But for now, you need _some_ development or advanced user background to install & use it; at least you have to know how to
cdaround your filesystem.When you get Darling to build, all that awaits you is another shell, which will be useless to you if you're not familiar with using shells.
If I were you, I would go and learn more about Unix/Linux shell basics, about using git, make/makefiles, CMake, and other stuff; then come back to Darling.
On the actual build error: perhaps try an even newer compiler (clang 8 is out...), or just disable xcbuild in
src/CMakeLists.txt(by commenting it out or just deleting the line altogether).