Re: make install fails as it tries to write in /tmp

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dear Harald,

Thank you for your answer.

In fact my environment variable TMPDIR was already set to an appropriate folder, in my bash environment.

Did you mean it is meant to be set somewhere else at build or install time?

Output of perl --version gives me: This is perl 5, version 16, subversion 3 (v5.16.3) built for x86_64-linux-thread-multi

I did try to change the hard-coded '/tmp' occurences in unix-Makefile.tmpl to the said folder, and it gave me something like:

ar: /my/dir/lib/libcrypto.so: file format not recognized

Is there anything else I can try?


Thibaut


On 28/10/2020 13:00, Harald Koch wrote:

This email from root@xxxxxxxxxxx originates from outside Imperial. Do not click on links and attachments unless you recognise the sender. If you trust the sender, add them to your safe senders list to disable email stamping for this address.

 

Hello Thibaut,

I assume due to the name prefix „ar“ that an archive wants to be created via program „ar“. According to its man page, you can set the environment variable TMPDIR to your required value. Try this.

(from „man ar“):

ENVIRONMENT
     TMPDIR  The pathname of the directory to use when creating temporary files.

Regards,
Harald

Am 28.10.2020 um 09:48 schrieb Thibaut Appel <t.appel17@xxxxxxxxxxxxxx>:

Dear OpenSSL users,

I uncovered a potential issue affecting the installation of OpenSSL from source, in the case the user is not allowed to write in the /tmp folder.

I'm trying to install on a cluster where permissions to '/tmp' is restricted.

Is there an environment variable designed to tell 'make install' to NOT use /tmp?

My $TMP environment variable points to a different folder. The result of:

./config --prefix=/rds/general/user/home/.linuxbrew/Cellar/openssl@1.1/1.1.1h
make && make install

install libcrypto.a -> /rds/general/user/home/.linuxbrew/Cellar/openssl@1.1/1.1.1h/lib/libcrypto.a
install libssl.a -> /rds/general/user/home/.linuxbrew/Cellar/openssl@1.1/1.1.1h/lib/libssl.a
link /rds/general/user/home/.linuxbrew/Cellar/openssl@1.1/1.1.1h/lib/libcrypto.so -> /rds/general/user/home/.linuxbrew/Cellar/openssl@1.1/1.1.1h/lib/libcrypto.so.1.1
install libcrypto.so -> /rds/general/user/home/.linuxbrew/Cellar/openssl@1.1/1.1.1h/lib/libcrypto.so
install libcrypto.so.1.1 -> /rds/general/user/home/.linuxbrew/Cellar/openssl@1.1/1.1.1h/lib/libcrypto.so
mkdir: cannot create directory '/tmp/ar.12361': Permission denied
make: *** [install_dev] Error 1

Is there something I'm missing? How can this be circumvented?

Thanks,

Thibaut




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux