Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem launching pac2asbru.pl migration script #994

Closed
efferre79 opened this issue Nov 16, 2022 · 3 comments
Closed

problem launching pac2asbru.pl migration script #994

efferre79 opened this issue Nov 16, 2022 · 3 comments
Labels
Milestone

Comments

@efferre79
Copy link
Contributor

I have just installed asbru-cm 6.4.0 but I get a strange error at startup from CLI:

$ asbru-cm
INFO: Ásbrú Connection Manager 6.4.0 (asbru-cm) started with PID 6037
INFO: Language detected : it_IT.UTF-8, forcing to en_US.UTF-8
Can't exec "'/usr/bin/perl' /usr/share/asbru-cm/utils/pac2asbru.pl": No such file or directory at /usr/bin/asbru-cm line 237.
INFO: Migration aborted or errors occured, execute with --verbose to see more information (-1)

As you can see I have changed the installation path of the scripts. If I change the following line

if ($status = system("'$^X' $PATH/utils/pac2asbru.pl", $old_dir, $new_dir, $VERBOSE)) {

to

if ($status = system("'$^X'", "$PATH/utils/pac2asbru.pl", $old_dir, $new_dir, $VERBOSE)) {

then I get the error:

INFO: Ásbrú Connection Manager 6.4.0 (asbru-cm) started with PID 6497
INFO: Language detected : it_IT.UTF-8, forcing to en_US.UTF-8
Can't exec "'/usr/bin/perl'": No such file or directory at /usr/bin/asbru-cm line 237.
INFO: Migration aborted or errors occured, execute with --verbose to see more information (-1)

but if I change finally to:

if ($status = system("$^X", "$PATH/utils/pac2asbru.pl", $old_dir, $new_dir, $VERBOSE)) {

then it works as expected. I am working on Gentoo Linux. My perl knowledge is limited so I cannot understand what is happening. I have noticed that the explicit perl exec name in the system() call has been added here, without "$^X" is also working fine on my system.

@efferre79 efferre79 changed the title problem launching pac2asbru migration script problem launching pac2asbru.pl migration script Nov 16, 2022
@gfrenoy
Copy link
Contributor

gfrenoy commented Nov 16, 2022

Thanks for the feedback! In perl, system takes either a full command either the command and a list of parameters, I overlooked this in the code review. This will be fixed in the next release.

@gfrenoy
Copy link
Contributor

gfrenoy commented Nov 21, 2022

A fix is available in our snapshot repository. Let us know if you have the chance to test this and feel free to reopen if it should not work as expected.

In any case, it will be included in our next release (6.4.1).

@gfrenoy gfrenoy closed this as completed Nov 21, 2022
@efferre79
Copy link
Contributor Author

tested and works, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants